// source --> http://indianatalkssports.com/wp-content/plugins/yop-poll/public/assets/js/yop-poll-public.min.js?ver=5.2.1
function gMakeSheet(e){var t=document.createElement("style");return null!=e&&t.setAttribute("media",e),t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet}function gAddStyleToSheet(e,t,a,i){for(var n in"all"===e||null===e?e=[sheet,smSheet,mdSheet,lgSheet]:void 0!==e.cssRules&&(e=[e]),e)"object"==typeof e[n]&&"text/css"===e[n].type&&(e[n].insertRule?e[n].insertRule(t+"{"+a+"}",i):e[n].addRule(t,a,i))}!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=e()}}(function(){return function o(r,s,l){function d(a,e){if(!s[a]){if(!r[a]){var t="function"==typeof require&&require;if(!e&&t)return t(a,!0);if(c)return c(a,!0);var i=new Error("Cannot find module '"+a+"'");throw i.code="MODULE_NOT_FOUND",i}var n=s[a]={exports:{}};r[a][0].call(n.exports,function(e){var t=r[a][1][e];return d(t||e)},n,n.exports,o,r,s,l)}return s[a].exports}for(var c="function"==typeof require&&require,e=0;e');var a=e.data,i=a.datasets,n=a.labels;if(i.length)for(var o=0;o'),n[o]&&t.push(n[o]),t.push("");return t.push(""),t.join("")},legend:{labels:{generateLabels:function(l){var d=l.data;return d.labels.length&&d.datasets.length?d.labels.map(function(e,t){var a=l.getDatasetMeta(0),i=d.datasets[0],n=a.data[t],o=n&&n.custom||{},r=I.valueAtIndexOrDefault,s=l.options.elements.arc;return{text:e,fillStyle:o.backgroundColor?o.backgroundColor:r(i.backgroundColor,t,s.backgroundColor),strokeStyle:o.borderColor?o.borderColor:r(i.borderColor,t,s.borderColor),lineWidth:o.borderWidth?o.borderWidth:r(i.borderWidth,t,s.borderWidth),hidden:isNaN(i.data[t])||a.data[t].hidden,index:t}}):[]}},onClick:function(e,t){var a,i,n,o=t.index,r=this.chart;for(a=0,i=(r.data.datasets||[]).length;a=Math.PI?-1:f<-Math.PI?1:0))+h,g=Math.cos(f),m=Math.sin(f),v=Math.cos(p),b=Math.sin(p),y=f<=0&&0<=p||f<=2*Math.PI&&2*Math.PI<=p,x=f<=.5*Math.PI&&.5*Math.PI<=p||f<=2.5*Math.PI&&2.5*Math.PI<=p,w=f<=-Math.PI&&-Math.PI<=p||f<=Math.PI&&Math.PI<=p,S=f<=.5*-Math.PI&&.5*-Math.PI<=p||f<=1.5*Math.PI&&1.5*Math.PI<=p,C=u/100,k=w?-1:Math.min(g*(g<0?1:C),v*(v<0?1:C)),M=S?-1:Math.min(m*(m<0?1:C),b*(b<0?1:C)),T=y?1:Math.max(g*(0');var a=e.data,i=a.datasets,n=a.labels;if(i.length)for(var o=0;o'),n[o]&&t.push(n[o]),t.push("");return t.push(""),t.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(e,t){var a=s.getDatasetMeta(0),i=l.datasets[0],n=a.data[t].custom||{},o=w.valueAtIndexOrDefault,r=s.options.elements.arc;return{text:e,fillStyle:n.backgroundColor?n.backgroundColor:o(i.backgroundColor,t,r.backgroundColor),strokeStyle:n.borderColor?n.borderColor:o(i.borderColor,t,r.borderColor),lineWidth:n.borderWidth?n.borderWidth:o(i.borderWidth,t,r.borderWidth),hidden:isNaN(i.data[t])||a.data[t].hidden,index:t}}):[]}},onClick:function(e,t){var a,i,n,o=t.index,r=this.chart;for(a=0,i=(r.data.datasets||[]).length;a=t.numSteps?(o.callback(t.onAnimationComplete,[t],a),a.animating=!1,i.splice(n,1)):++n}},Object.defineProperty(e.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(e.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}})}},{25:25,26:26,45:45}],23:[function(e,t,a){"use strict";var c=e(25),u=e(45),n=e(28),h=e(48);t.exports=function(d){var l=d.plugins;function s(e){return"top"===e||"bottom"===e}d.types={},d.instances={},d.controllers={},u.extend(d.prototype,{construct:function(e,t){var a,i,n=this;(i=(a=(a=t)||{}).data=a.data||{}).datasets=i.datasets||[],i.labels=i.labels||[],a.options=u.configMerge(c.global,c[a.type],a.options||{}),t=a;var o=h.acquireContext(e,t),r=o&&o.canvas,s=r&&r.height,l=r&&r.width;n.id=u.uid(),n.ctx=o,n.canvas=r,n.config=t,n.width=l,n.height=s,n.aspectRatio=s?l/s:null,n.options=t.options,n._bufferedRender=!1,(n.chart=n).controller=n,d.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),o&&r?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return l.notify(e,"beforeInit"),u.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildScales(),e.initToolTip(),l.notify(e,"afterInit"),e},clear:function(){return u.canvas.clear(this),this},stop:function(){return d.animationService.cancelAnimation(this),this},resize:function(e){var t=this,a=t.options,i=t.canvas,n=a.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(u.getMaximumWidth(i))),r=Math.max(0,Math.floor(n?o/n:u.getMaximumHeight(i)));if((t.width!==o||t.height!==r)&&(i.width=t.width=o,i.height=t.height=r,i.style.width=o+"px",i.style.height=r+"px",u.retinaScale(t,a.devicePixelRatio),!e)){var s={width:o,height:r};l.notify(t,"resize",[s]),t.options.onResize&&t.options.onResize(t,s),t.stop(),t.update(t.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},a=e.scale;u.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t}),u.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t}),a&&(a.id=a.id||"scale")},buildScales:function(){var o=this,e=o.options,r=o.scales={},t=[];e.scales&&(t=t.concat((e.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(e.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),e.scale&&t.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),u.each(t,function(e){var t=e.options,a=u.valueOrDefault(t.type,e.dtype),i=d.scaleService.getScaleConstructor(a);if(i){s(t.position)!==s(e.dposition)&&(t.position=e.dposition);var n=new i({id:t.id,options:t,ctx:o.ctx,chart:o});(r[n.id]=n).mergeTicksOptions(),e.isDefault&&(o.scale=n)}}),d.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var o=this,r=[],s=[];return u.each(o.data.datasets,function(e,t){var a=o.getDatasetMeta(t),i=e.type||o.config.type;if(a.type&&a.type!==i&&(o.destroyDatasetMeta(t),a=o.getDatasetMeta(t)),a.type=i,r.push(a.type),a.controller)a.controller.updateIndex(t);else{var n=d.controllers[a.type];if(void 0===n)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new n(o,t),s.push(a.controller)}},o),s},resetElements:function(){var a=this;u.each(a.data.datasets,function(e,t){a.getDatasetMeta(t).controller.reset()},a)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,a,i=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),(a=(t=i).options).scale?t.scale.options=a.scale:a.scales&&a.scales.xAxes.concat(a.scales.yAxes).forEach(function(e){t.scales[e.id].options=e}),t.tooltip._options=a.tooltips,!1!==l.notify(i,"beforeUpdate")){i.tooltip._data=i.data;var n=i.buildOrUpdateControllers();u.each(i.data.datasets,function(e,t){i.getDatasetMeta(t).controller.buildOrUpdateElements()},i),i.updateLayout(),u.each(n,function(e){e.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],l.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:i.render(e)}},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(d.layoutService.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e=t[e].length&&t[e].push({}),!t[e][n].type||r.type&&r.type!==t[e][n].type?p.merge(t[e][n],[l.scaleService.getScaleDefaults(o),r]):p.merge(t[e][n],r)}else p._merger(e,t,a,i)}})},p.where=function(e,t){if(p.isArray(e)&&Array.prototype.filter)return e.filter(t);var a=[];return p.each(e,function(e){t(e)&&a.push(e)}),a},p.findIndex=Array.prototype.findIndex?function(e,t,a){return e.findIndex(t,a)}:function(e,t,a){a=void 0===a?e:a;for(var i=0,n=e.length;i=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},p.previousItem=function(e,t,a){return a?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},p.niceNum=function(e,t){var a=Math.floor(p.log10(e)),i=e/Math.pow(10,a);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,a)},p.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},p.getRelativePosition=function(e,t){var a,i,n=e.originalEvent||e,o=e.currentTarget||e.srcElement,r=o.getBoundingClientRect(),s=n.touches;i=s&&0a.length){for(var l=0;lt&&(t=e.length)}),t},p.color=i?function(e){return e instanceof CanvasGradient&&(e=n.global.defaultColor),i(e)}:function(e){return console.error("Color.js not found!"),e},p.getHoverColor=function(e){return e instanceof CanvasPattern?e:p.color(e).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(e,t,a){"use strict";var i=e(45);function s(e,t){return e.native?{x:e.x,y:e.y}:i.getRelativePosition(e,t)}function l(e,t){var a,i,n,o,r;for(i=0,o=e.data.datasets.length;ie.maxHeight){o--;break}o++,l=r*s}e.labelRotation=o},afterCalculateTickRotation:function(){z.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){z.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},a=k(e._ticks),i=e.options,n=i.ticks,o=i.scaleLabel,r=i.gridLines,s=i.display,l=e.isHorizontal(),d=S(n),c=i.gridLines.tickMarkLength;if(t.width=l?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:s&&r.drawTicks?c:0,t.height=l?s&&r.drawTicks?c:0:e.maxHeight,o.display&&s){var u=C(o)+z.options.toPadding(o.padding).height;l?t.height+=u:t.width+=u}if(n.display&&s){var h=z.longestText(e.ctx,d.font,a,e.longestTextCache),f=z.numberOfLabelLines(a),p=.5*d.size,g=e.options.ticks.padding;if(l){e.longestLabelWidth=h;var m=z.toRadians(e.labelRotation),v=Math.cos(m),b=Math.sin(m)*h+d.size*f+p*(f-1)+p;t.height=Math.min(e.maxHeight,t.height+b+g),e.ctx.font=d.font;var y=w(e.ctx,a[0],d.font),x=w(e.ctx,a[a.length-1],d.font);0!==e.labelRotation?(e.paddingLeft="bottom"===i.position?v*y+3:v*p+3,e.paddingRight="bottom"===i.position?v*p+3:v*x+3):(e.paddingLeft=y/2+3,e.paddingRight=x/2+3)}else n.mirror?h=0:h+=g+p,t.width=Math.min(e.maxWidth,t.width+h),e.paddingTop=d.size/2,e.paddingBottom=d.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){z.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(z.isNullOrUndef(e))return NaN;if("number"==typeof e&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:z.noop,getPixelForValue:z.noop,getValueForPixel:z.noop,getPixelForTick:function(e){var t=this,a=t.options.offset;if(t.isHorizontal()){var i=(t.width-(t.paddingLeft+t.paddingRight))/Math.max(t._ticks.length-(a?0:1),1),n=i*e+t.paddingLeft;a&&(n+=i/2);var o=t.left+Math.round(n);return o+=t.isFullWidth()?t.margins.left:0}var r=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(r/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var a=(t.width-(t.paddingLeft+t.paddingRight))*e+t.paddingLeft,i=t.left+Math.round(a);return i+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:0o.width-(o.paddingLeft+o.paddingRight)&&(t=1+Math.floor((u+s.autoSkipPadding)*l/(o.width-(o.paddingLeft+o.paddingRight)))),n&&nl.height-t.height&&(u="bottom");var h=(d.left+d.right)/2,f=(d.top+d.bottom)/2;i="center"===u?(a=function(e){return e<=h},function(e){return h=l.width-t.width/2}),n=function(e){return e+t.width>l.width},o=function(e){return e-t.width<0},r=function(e){return e<=f?"top":"bottom"},a(s.x)?(c="left",n(s.x)&&(c="center",u=r(s.y))):i(s.x)&&(c="right",o(s.x)&&(c="center",u=r(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:u}}(this,A=function(e,t){var a=e._chart.ctx,i=2*t.yPadding,n=0,o=t.body,r=o.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);r+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,d=t.titleFontSize,c=t.bodyFontSize,u=t.footerFontSize;i+=s*d,i+=s?(s-1)*t.titleSpacing:0,i+=s?t.titleMarginBottom:0,i+=r*c,i+=r?(r-1)*t.bodySpacing:0,i+=l?t.footerMarginTop:0,i+=l*u,i+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){n=Math.max(n,a.measureText(e).width+h)};return a.font=O.fontString(d,t._titleFontStyle,t._titleFontFamily),O.each(t.title,f),a.font=O.fontString(c,t._bodyFontStyle,t._bodyFontFamily),O.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?c+2:0,O.each(o,function(e){O.each(e.before,f),O.each(e.lines,f),O.each(e.after,f)}),h=0,a.font=O.fontString(u,t._footerFontStyle,t._footerFontFamily),O.each(t.footer,f),{width:n+=2*t.xPadding,height:i}}(this,C)),n=A,o=T,r=(i=C).x,s=i.y,l=i.caretSize,d=i.caretPadding,c=i.cornerRadius,u=o.xAlign,h=o.yAlign,f=l+d,p=c+d,"right"===u?r-=n.width:"center"===u&&(r-=n.width/2),"top"===h?s+=f:s-="bottom"===h?n.height+f:n.height/2,"center"===h?"left"===u?r+=f:"right"===u&&(r-=f):"left"===u?r-=p:"right"===u&&(r+=p),P={x:r,y:s}}else C.opacity=0;return C.xAlign=T.xAlign,C.yAlign=T.yAlign,C.x=P.x,C.y=P.y,C.width=A.width,C.height=A.height,C.caretX=_.x,C.caretY=_.y,x._model=C,e&&w.custom&&w.custom.call(x,C),x},drawCaret:function(e,t){var a=this._chart.ctx,i=this._view,n=this.getCaretPosition(e,t,i);a.lineTo(n.x1,n.y1),a.lineTo(n.x2,n.y2),a.lineTo(n.x3,n.y3)},getCaretPosition:function(e,t,a){var i,n,o,r,s,l,d=a.caretSize,c=a.cornerRadius,u=a.xAlign,h=a.yAlign,f=e.x,p=e.y,g=t.width,m=t.height;if("center"===h)s=p+m/2,l="left"===u?(n=(i=f)-d,o=i,r=s+d,s-d):(n=(i=f+g)+d,o=i,r=s-d,s+d);else if(o=(i="left"===u?(n=f+c+d)-d:"right"===u?(n=f+g-c-d)-d:(n=f+g/2)-d,n+d),"top"===h)s=(r=p)-d,l=r;else{s=(r=p+m)+d,l=r;var v=o;o=i,i=v}return{x1:i,x2:n,x3:o,y1:r,y2:s,y3:l}},drawTitle:function(e,t,a,i){var n=t.title;if(n.length){a.textAlign=t._titleAlign,a.textBaseline="top";var o,r,s=t.titleFontSize,l=t.titleSpacing;for(a.fillStyle=h(t.titleFontColor,i),a.font=O.fontString(s,t._titleFontStyle,t._titleFontFamily),o=0,r=n.length;o=a.innerRadius&&o<=a.outerRadius;return l&&d}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,a=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*a,y:e.y+Math.sin(t)*a}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,a=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*a,y:e.y+Math.sin(t)*a}},draw:function(){var e=this._chart.ctx,t=this._view,a=t.startAngle,i=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,a,i),e.arc(t.x,t.y,t.innerRadius,i,a,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin="bevel",t.borderWidth&&e.stroke()}})},{25:25,26:26,45:45}],37:[function(e,t,a){"use strict";var i=e(25),n=e(26),c=e(45),u=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:u.defaultColor,borderWidth:3,borderColor:u.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),t.exports=n.extend({draw:function(){var e,t,a,i,n=this._view,o=this._chart.ctx,r=n.spanGaps,s=this._children.slice(),l=u.elements.line,d=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=n.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(n.borderDash||l.borderDash),o.lineDashOffset=n.borderDashOffset||l.borderDashOffset,o.lineJoin=n.borderJoinStyle||l.borderJoinStyle,o.lineWidth=n.borderWidth||l.borderWidth,o.strokeStyle=n.borderColor||u.defaultColor,o.beginPath(),d=-1,e=0;e=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom}return a},inLabelRange:function(e,t){if(!this._view)return!1;var a=o(this);return l(this)?e>=a.left&&e<=a.right:t>=a.top&&t<=a.bottom},inXRange:function(e){var t=o(this);return e>=t.left&&e<=t.right},inYRange:function(e){var t=o(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function(){var e,t,a=this._view;return t=l(this)?(e=a.x,(a.y+a.base)/2):(e=(a.x+a.base)/2,a.y),{x:e,y:t}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})},{25:25,26:26}],40:[function(e,t,a){"use strict";t.exports={},t.exports.Arc=e(36),t.exports.Line=e(37),t.exports.Point=e(38),t.exports.Rectangle=e(39)},{36:36,37:37,38:38,39:39}],41:[function(e,t,a){"use strict";var i=e(42);a=t.exports={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,a,i,n,o){if(o){var r=Math.min(o,i/2),s=Math.min(o,n/2);e.moveTo(t+r,a),e.lineTo(t+i-r,a),e.quadraticCurveTo(t+i,a,t+i,a+s),e.lineTo(t+i,a+n-s),e.quadraticCurveTo(t+i,a+n,t+i-r,a+n),e.lineTo(t+r,a+n),e.quadraticCurveTo(t,a+n,t,a+n-s),e.lineTo(t,a+s),e.quadraticCurveTo(t,a,t+r,a)}else e.rect(t,a,i,n)},drawPoint:function(e,t,a,i,n){var o,r,s,l,d,c;if(!t||"object"!=typeof t||"[object HTMLImageElement]"!==(o=t.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(a)||a<=0)){switch(t){default:e.beginPath(),e.arc(i,n,a,0,2*Math.PI),e.closePath(),e.fill();break;case"triangle":e.beginPath(),d=(r=3*a/Math.sqrt(3))*Math.sqrt(3)/2,e.moveTo(i-r/2,n+d/3),e.lineTo(i+r/2,n+d/3),e.lineTo(i,n-2*d/3),e.closePath(),e.fill();break;case"rect":c=1/Math.SQRT2*a,e.beginPath(),e.fillRect(i-c,n-c,2*c,2*c),e.strokeRect(i-c,n-c,2*c,2*c);break;case"rectRounded":var u=a/Math.SQRT2,h=i-u,f=n-u,p=Math.SQRT2*a;e.beginPath(),this.roundedRect(e,h,f,p,p,a/2),e.closePath(),e.fill();break;case"rectRot":c=1/Math.SQRT2*a,e.beginPath(),e.moveTo(i-c,n),e.lineTo(i,n+c),e.lineTo(i+c,n),e.lineTo(i,n-c),e.closePath(),e.fill();break;case"cross":e.beginPath(),e.moveTo(i,n+a),e.lineTo(i,n-a),e.moveTo(i-a,n),e.lineTo(i+a,n),e.closePath();break;case"crossRot":e.beginPath(),s=Math.cos(Math.PI/4)*a,l=Math.sin(Math.PI/4)*a,e.moveTo(i-s,n-l),e.lineTo(i+s,n+l),e.moveTo(i-s,n+l),e.lineTo(i+s,n-l),e.closePath();break;case"star":e.beginPath(),e.moveTo(i,n+a),e.lineTo(i,n-a),e.moveTo(i-a,n),e.lineTo(i+a,n),s=Math.cos(Math.PI/4)*a,l=Math.sin(Math.PI/4)*a,e.moveTo(i-s,n-l),e.lineTo(i+s,n+l),e.moveTo(i-s,n+l),e.lineTo(i+s,n-l),e.closePath();break;case"line":e.beginPath(),e.moveTo(i-a,n),e.lineTo(i+a,n),e.closePath();break;case"dash":e.beginPath(),e.moveTo(i,n),e.lineTo(i+a,n),e.closePath()}e.stroke()}}else e.drawImage(t,i-t.width/2,n-t.height/2,t.width,t.height)},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,a,i){if(a.steppedLine)return"after"===a.steppedLine&&!i||"after"!==a.steppedLine&&i?e.lineTo(t.x,a.y):e.lineTo(a.x,t.y),void e.lineTo(a.x,a.y);a.tension?e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?a.controlPointNextX:a.controlPointPreviousX,i?a.controlPointNextY:a.controlPointPreviousY,a.x,a.y):e.lineTo(a.x,a.y)}};i.clear=a.clear,i.drawRoundedRectangle=function(e){e.beginPath(),a.roundedRect.apply(a,arguments),e.closePath()}},{42:42}],42:[function(e,t,a){"use strict";var i,c={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(e){return null==e},isArray:Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,a){return c.valueOrDefault(c.isArray(e)?e[t]:e,a)},callback:function(e,t,a){if(e&&"function"==typeof e.call)return e.apply(a,t)},each:function(e,t,a,i){var n,o,r;if(c.isArray(e))if(o=e.length,i)for(n=o-1;0<=n;n--)t.call(a,e[n],n);else for(n=0;n';var n=t.childNodes[0],o=t.childNodes[1];t._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,o.scrollLeft=1e6,o.scrollTop=1e6};var r=function(){t._reset(),e()};return y(n,"scroll",r.bind(n,"expand")),y(o,"scroll",r.bind(o,"shrink")),t}((o=!(i=function(){if(u.resizer)return e(x("resize",a))}),r=[],function(){r=Array.prototype.slice.call(arguments),n=n||this,o||(o=!0,f.requestAnimFrame.call(window,function(){o=!1,i.apply(n,r)}))}));l=function(){if(u.resizer){var e=t.parentNode;e&&e!==h.parentNode&&e.insertBefore(h,e.firstChild),h._reset()}},d=(s=t)[p]||(s[p]={}),c=d.renderProxy=function(e){e.animationName===v&&l()},f.each(b,function(e){y(s,e,c)}),d.reflow=!!s.offsetParent,s.classList.add(m)}function o(e){var t,a,i,n=e[p]||{},o=n.resizer;delete n.resizer,a=(t=e)[p]||{},(i=a.renderProxy)&&(f.each(b,function(e){r(t,e,i)}),delete a.renderProxy),t.classList.remove(m),o&&o.parentNode&&o.parentNode.removeChild(o)}t.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var e,t,a,i="from{opacity:0.99}to{opacity:1}";t="@-webkit-keyframes "+v+"{"+i+"}@keyframes "+v+"{"+i+"}."+m+"{-webkit-animation:"+v+" 0.001s;animation:"+v+" 0.001s;}",a=(e=this)._style||document.createElement("style"),e._style||(t="/* Chart.js */\n"+t,(e._style=a).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(a)),a.appendChild(document.createTextNode(t))},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var a=e&&e.getContext&&e.getContext("2d");return a&&a.canvas===e?(function(e,t){var a=e.style,i=e.getAttribute("height"),n=e.getAttribute("width");if(e[p]={initial:{height:i,width:n,style:{display:a.display,height:a.height,width:a.width}}},a.display=a.display||"block",null===n||""===n){var o=l(e,"width");void 0!==o&&(e.width=o)}if(null===i||""===i)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var r=l(e,"height");void 0!==o&&(e.height=r)}}(e,t),a):null},releaseContext:function(e){var a=e.canvas;if(a[p]){var i=a[p].initial;["height","width"].forEach(function(e){var t=i[e];f.isNullOrUndef(t)?a.removeAttribute(e):a.setAttribute(e,t)}),f.each(i.style||{},function(e,t){a.style[t]=e}),a.width=a.width,delete a[p]}},addEventListener:function(o,e,r){var t=o.canvas;if("resize"!==e){var a=r[p]||(r[p]={});y(t,e,(a.proxies||(a.proxies={}))[o.id+"_"+e]=function(e){var t,a,i,n;r((a=o,i=s[(t=e).type]||t.type,n=f.getRelativePosition(t,a),x(i,a,n.x,n.y,t)))})}else n(t,r,o)},removeEventListener:function(e,t,a){var i=e.canvas;if("resize"!==t){var n=((a[p]||{}).proxies||{})[e.id+"_"+t];n&&r(i,t,n)}else o(i)}},f.addEvent=y,f.removeEvent=r},{45:45}],48:[function(e,t,a){"use strict";var i=e(45),n=e(46),o=e(47),r=o._enabled?o:n;t.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},r)},{45:45,46:46,47:47}],49:[function(e,t,a){"use strict";var d=e(25),m=e(40),c=e(45);d._set("global",{plugins:{filler:{propagate:!0}}}),t.exports=function(){var h={dataset:function(e){var t=e.fill,a=e.chart,i=a.getDatasetMeta(t),n=i&&a.isDatasetVisible(t)&&i.dataset._children||[],o=n.length||0;return o?function(e,t){return t');for(var a=0;a'),e.data.datasets[a].label&&t.push(e.data.datasets[a].label),t.push("");return t.push(""),t.join("")}}),t.exports=function(i){var n=i.layoutService,e=A.noop;function T(e,t){return e.usePointStyle?t*Math.SQRT2:e.boxWidth}function o(e,t){var a=new i.Legend({ctx:e.ctx,options:t,chart:e});n.configure(e,a,t),n.addBox(e,a),e.legend=a}return i.Legend=r.extend({initialize:function(e){A.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:e,update:function(e,t,a){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=a,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:e,beforeSetDimensions:e,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:e,beforeBuildLabels:e,buildLabels:function(){var t=this,a=t.options.labels||{},e=A.callback(a.generateLabels,[t.chart],t)||[];a.filter&&(e=e.filter(function(e){return a.filter(e,t.chart.data)})),t.options.reverse&&e.reverse(),t.legendItems=e},afterBuildLabels:e,beforeFit:e,fit:function(){var i=this,e=i.options,n=e.labels,t=e.display,o=i.ctx,a=P.global,r=A.valueOrDefault,s=r(n.fontSize,a.defaultFontSize),l=r(n.fontStyle,a.defaultFontStyle),d=r(n.fontFamily,a.defaultFontFamily),c=A.fontString(s,l,d),u=i.legendHitBoxes=[],h=i.minSize,f=i.isHorizontal();if(h.height=f?(h.width=i.maxWidth,t?10:0):(h.width=t?10:0,i.maxHeight),t)if(o.font=c,f){var p=i.lineWidths=[0],g=i.legendItems.length?s+n.padding:0;o.textAlign="left",o.textBaseline="top",A.each(i.legendItems,function(e,t){var a=T(n,s)+s/2+o.measureText(e.text).width;p[p.length-1]+a+n.padding>=i.width&&(g+=s+n.padding,p[p.length]=i.left),u[t]={left:0,top:0,width:a,height:s},p[p.length-1]+=a+n.padding}),h.height+=g}else{var m=n.padding,v=i.columnWidths=[],b=n.padding,y=0,x=0,w=s+m;A.each(i.legendItems,function(e,t){var a=T(n,s)+s/2+o.measureText(e.text).width;x+w>h.height&&(b+=y+n.padding,v.push(y),x=y=0),y=Math.max(y,a),x+=w,u[t]={left:0,top:0,width:a,height:s}}),b+=y,v.push(y),h.width+=b}i.width=h.width,i.height=h.height},afterFit:e,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var u=this,h=u.options,f=h.labels,p=P.global,g=p.elements.line,m=u.width,v=u.lineWidths;if(h.display){var b,y=u.ctx,x=A.valueOrDefault,e=x(f.fontColor,p.defaultFontColor),w=x(f.fontSize,p.defaultFontSize),t=x(f.fontStyle,p.defaultFontStyle),a=x(f.fontFamily,p.defaultFontFamily),i=A.fontString(w,t,a);y.textAlign="left",y.textBaseline="middle",y.lineWidth=.5,y.strokeStyle=e,y.fillStyle=e,y.font=i;var S=T(f,w),C=u.legendHitBoxes,k=u.isHorizontal();b=k?{x:u.left+(m-v[0])/2,y:u.top+f.padding,line:0}:{x:u.left+f.padding,y:u.top+f.padding,line:0};var M=w+f.padding;A.each(u.legendItems,function(e,t){var a,i,n,o,r,s=y.measureText(e.text).width,l=S+w/2+s,d=b.x,c=b.y;k?m<=d+l&&(c=b.y+=M,b.line++,d=b.x=u.left+(m-v[b.line])/2):c+M>u.bottom&&(d=b.x=d+u.columnWidths[b.line]+f.padding,c=b.y=u.top+f.padding,b.line++),function(e,t,a){if(!(isNaN(S)||S<=0)){y.save(),y.fillStyle=x(a.fillStyle,p.defaultColor),y.lineCap=x(a.lineCap,g.borderCapStyle),y.lineDashOffset=x(a.lineDashOffset,g.borderDashOffset),y.lineJoin=x(a.lineJoin,g.borderJoinStyle),y.lineWidth=x(a.lineWidth,g.borderWidth),y.strokeStyle=x(a.strokeStyle,p.defaultColor);var i=0===x(a.lineWidth,g.borderWidth);if(y.setLineDash&&y.setLineDash(x(a.lineDash,g.borderDash)),h.labels&&h.labels.usePointStyle){var n=w*Math.SQRT2/2,o=n/Math.SQRT2,r=e+o,s=t+o;A.canvas.drawPoint(y,a.pointStyle,n,r,s)}else i||y.strokeRect(e,t,S,w),y.fillRect(e,t,S,w);y.restore()}}(d,c,e),C[t].left=d,C[t].top=c,a=e,i=s,o=S+(n=w/2)+d,r=c+n,y.fillText(a.text,o,r),a.hidden&&(y.beginPath(),y.lineWidth=2,y.moveTo(o,r),y.lineTo(o+i,r),y.stroke()),k?b.x+=l+f.padding:b.y+=M})}},handleEvent:function(e){var t=this,a=t.options,i="mouseup"===e.type?"click":e.type,n=!1;if("mousemove"===i){if(!a.onHover)return}else{if("click"!==i)return;if(!a.onClick)return}var o=e.x,r=e.y;if(o>=t.left&&o<=t.right&&r>=t.top&&r<=t.bottom)for(var s=t.legendHitBoxes,l=0;l=d.left&&o<=d.left+d.width&&r>=d.top&&r<=d.top+d.height){if("click"===i){a.onClick.call(t,e.native,t.legendItems[l]),n=!0;break}if("mousemove"===i){a.onHover.call(t,e.native,t.legendItems[l]),n=!0;break}}}return n}}),{id:"legend",beforeInit:function(e){var t=e.options.legend;t&&o(e,t)},beforeUpdate:function(e){var t=e.options.legend,a=e.legend;t?(A.mergeIf(t,P.global.legend),a?(n.configure(e,a,t),a.options=t):o(e,t)):a&&(n.removeBox(e,a),delete e.legend)},afterEvent:function(e,t){var a=e.legend;a&&a.handleEvent(t)}}}},{25:25,26:26,45:45}],51:[function(e,t,a){"use strict";var S=e(25),r=e(26),C=e(45);S._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),t.exports=function(i){var n=i.layoutService,e=C.noop;function o(e,t){var a=new i.Title({ctx:e.ctx,options:t,chart:e});n.configure(e,a,t),n.addBox(e,a),e.titleBlock=a}return i.Title=r.extend({initialize:function(e){C.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:e,update:function(e,t,a){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=a,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:e,beforeSetDimensions:e,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:e,beforeBuildLabels:e,buildLabels:e,afterBuildLabels:e,beforeFit:e,fit:function(){var e=this,t=C.valueOrDefault,a=e.options,i=a.display,n=t(a.fontSize,S.global.defaultFontSize),o=e.minSize,r=C.isArray(a.text)?a.text.length:1,s=C.options.toLineHeight(a.lineHeight,n),l=i?r*s+2*a.padding:0;e.isHorizontal()?(o.width=e.maxWidth,o.height=l):(o.width=l,o.height=e.maxHeight),e.width=o.width,e.height=o.height},afterFit:e,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,a=C.valueOrDefault,i=e.options,n=S.global;if(i.display){var o,r,s,l=a(i.fontSize,n.defaultFontSize),d=a(i.fontStyle,n.defaultFontStyle),c=a(i.fontFamily,n.defaultFontFamily),u=C.fontString(l,d,c),h=C.options.toLineHeight(i.lineHeight,l),f=h/2+i.padding,p=0,g=e.top,m=e.left,v=e.bottom,b=e.right;t.fillStyle=a(i.fontColor,n.defaultFontColor),t.font=u,e.isHorizontal()?(r=m+(b-m)/2,s=g+f,o=b-m):(r="left"===i.position?m+f:b-f,s=g+(v-g)/2,o=v-g,p=Math.PI*("left"===i.position?-.5:.5)),t.save(),t.translate(r,s),t.rotate(p),t.textAlign="center",t.textBaseline="middle";var y=i.text;if(C.isArray(y))for(var x=0,w=0;wr.max&&(r.max=a))})});r.min=isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=isFinite(r.max)&&!isNaN(r.max)?r.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var e,t=this.options.ticks;if(this.isHorizontal())e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.width/50));else{var a=u.valueOrDefault(t.fontSize,i.global.defaultFontSize);e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.height/(2*a)))}return e},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t,a=this,i=a.start,n=+a.getRightValue(e),o=a.end-i;return t=a.isHorizontal()?a.left+a.width/o*(n-i):a.bottom-a.height/o*(n-i),Math.round(t)},getValueForPixel:function(e){var t=this,a=t.isHorizontal(),i=a?t.width:t.height,n=(a?e-t.left:t.bottom-e)/i;return t.start+(t.end-t.start)*n},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});e.scaleService.registerScaleType("linear",a,t)}},{25:25,34:34,45:45}],54:[function(e,t,a){"use strict";var r=e(45),o=e(34);t.exports=function(t){var e=r.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var a=r.sign(e.min),i=r.sign(e.max);a<0&&i<0?e.max=0:0=e.max&&(n?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var e=this,t=e.options.ticks,a=e.getTickLimit(),i={maxTicks:a=Math.max(2,a),min:t.min,max:t.max,stepSize:r.valueOrDefault(t.fixedStepSize,t.stepSize)},n=e.ticks=o.generators.linear(i,e);e.handleDirectionalChanges(),e.max=r.max(n),e.min=r.min(n),t.reverse?(n.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{34:34,45:45}],55:[function(e,t,a){"use strict";var u=e(45),n=e(34);t.exports=function(e){var t={position:"left",ticks:{callback:n.formatters.logarithmic}},a=e.Scale.extend({determineDataLimits:function(){var r=this,s=r.options,e=s.ticks,l=r.chart,t=l.data.datasets,a=u.valueOrDefault,i=r.isHorizontal();function d(e){return i?e.xAxisID===r.id:e.yAxisID===r.id}r.min=null,r.max=null,r.minNotZero=null;var n=s.stacked;if(void 0===n&&u.each(t,function(e,t){if(!n){var a=l.getDatasetMeta(t);l.isDatasetVisible(t)&&d(a)&&void 0!==a.stack&&(n=!0)}}),s.stacked||n){var c={};u.each(t,function(e,t){var n=l.getDatasetMeta(t),o=[n.type,void 0===s.stacked&&void 0===n.stack?t:"",n.stack].join(".");l.isDatasetVisible(t)&&d(n)&&(void 0===c[o]&&(c[o]=[]),u.each(e.data,function(e,t){var a=c[o],i=+r.getRightValue(e);isNaN(i)||n.data[t].hidden||(a[t]=a[t]||0,s.relativePoints?a[t]=100:a[t]+=i)}))}),u.each(c,function(e){var t=u.min(e),a=u.max(e);r.min=null===r.min?t:Math.min(r.min,t),r.max=null===r.max?a:Math.max(r.max,a)})}else u.each(t,function(e,t){var i=l.getDatasetMeta(t);l.isDatasetVisible(t)&&d(i)&&u.each(e.data,function(e,t){var a=+r.getRightValue(e);isNaN(a)||i.data[t].hidden||(null===r.min?r.min=a:ar.max&&(r.max=a),0!==a&&(null===r.minNotZero||ar.r&&(r.r=p.end,s.r=h),g.startr.b&&(r.b=g.end,s.b=h)}e.setReductions(o,r,s)}(this):(e=this,t=Math.min(e.height/2,e.width/2),e.drawingArea=Math.round(t),e.setCenterPoint(0,0,0,0))},setReductions:function(e,t,a){var i=t.l/Math.sin(a.l),n=Math.max(t.r-this.width,0)/Math.sin(a.r),o=-t.t/Math.cos(a.t),r=-Math.max(t.b-this.height,0)/Math.cos(a.b);i=s(i),n=s(n),o=s(o),r=s(r),this.drawingArea=Math.min(Math.round(e-(i+n)/2),Math.round(e-(o+r)/2)),this.setCenterPoint(i,n,o,r)},setCenterPoint:function(e,t,a,i){var n=this,o=n.width-t-n.drawingArea,r=e+n.drawingArea,s=a+n.drawingArea,l=n.height-i-n.drawingArea;n.xCenter=Math.round((r+o)/2+n.left),n.yCenter=Math.round((s+l)/2+n.top)},getIndexAngle:function(e){return e*(2*Math.PI/y(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var a=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*a:(e-t.min)*a},getPointPosition:function(e,t){var a=this.getIndexAngle(e)-Math.PI/2;return{x:Math.round(Math.cos(a)*t)+this.xCenter,y:Math.round(Math.sin(a)*t)+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this.min,t=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:e<0&&t<0?t:0>1)-1]||null,o=e[i],!n)return{lo:null,hi:o};if(o[t]a))return{lo:n,hi:o};s=i-1}}return{lo:o,hi:null}}(e,t,a),o=n.lo?n.hi?n.lo:e[e.length-2]:e[0],r=n.lo?n.hi?n.hi:e[e.length-1]:e[1],s=r[t]-o[t],l=s?(a-o[t])/s:0,d=(r[i]-o[i])*l;return o[i]+d}function s(e,t){var a=t.parser,i=t.parser||t.format;return"function"==typeof a?a(e):"string"==typeof e&&"string"==typeof i?y(e,i):(e instanceof y||(e=y(e)),e.isValid()?e:"function"==typeof i?i(e):e)}function C(e,t){if(m.isNullOrUndef(e))return null;var a=t.options.time,i=s(t.getRightValue(e),a);return i.isValid()?(a.round&&i.startOf(a.round),i.valueOf()):null}function k(e){for(var t=w.indexOf(e)+1,a=w.length;t=w.indexOf(t);n--)if(o=w[n],x[o].common&&r.as(o)>=e.length)return o;return w[t?w.indexOf(t):0]}(b,m.minUnit,h.min,h.max),h._majorUnit=k(h._unit),h._table=function(e,t,a,i){if("linear"===i||!e.length)return[{time:t,pos:0},{time:a,pos:1}];var n,o,r,s,l,d=[],c=[t];for(n=0,o=e.length;n")[L]("ifCreated").parent().append(f.insert),e=x('').css(r).appendTo(h),i.data(w,{o:f,s:i.attr("style")}).css(s),f.inheritClass&&h[F](n.className||""),f.inheritID&&t&&h.attr("id",w+"-"+t),"static"==h.css("position")&&h.css("position","relative"),B(i,!0,A),d.length&&d.on(I+".i mouseover.i mouseout.i "+D,function(e){var t=e[_],a=x(this);if(!n[T]){if(t==I){if(x(e.target).is("a"))return;B(i,!1,!0)}else v&&(/ut|nd/.test(t)?(h[R](p),a[R](b)):(h[F](p),a[F](b)));if(!E)return!1;e.stopPropagation()}}),i.on(I+".i focus.i blur.i keyup.i keydown.i keypress.i",function(e){var t=e[_],a=e.keyCode;return t!=I&&("keydown"==t&&32==a?(n[_]==k&&n[M]||(n[M]?H(i,M):N(i,M)),!1):void("keyup"==t&&n[_]==k?!n[M]&&N(i,M):/us|ur/.test(t)&&h["blur"==t?R:F](g)))}),e.on(I+" mousedown mouseup mouseover mouseout "+D,function(e){var t=e[_],a=/wn|up/.test(t)?m:p;if(!n[T]){if(t==I?B(i,!1,!0):(/wn|er|in/.test(t)?h[F](a):h[R](a+" "+m),d.length&&v&&a==p&&d[/ut|nd/.test(t)?R:F](b)),!E)return!1;e.stopPropagation()}})})}}(window.jQuery||window.Zepto);var sheet=gMakeSheet(),xsSheet=sheet,smSheet=gMakeSheet("only screen and (min-width: 768px)"),mdSheet=gMakeSheet("only screen and (min-width: 992px)"),lgSheet=gMakeSheet("only screen and (min-width: 1200px)");if(gAddStyleToSheet(null,".yop-poll-container [class*='col-']","padding-left:15px;padding-right:15px;"),gAddStyleToSheet(null,".flush-row [class*='col-']:first-of-type","padding-left:0 !important;"),gAddStyleToSheet(null,".flush-row [class*='col-']:last-of-type","padding-right:0 !important;"),function(r){r(document).ready(function(){var i={};r(".basic-yop-poll-container").find(".row[data-columns]").each(function(){var e=r(this).data("columns");if(r(this).addClass("cols-"+e),void 0===i["cols-"+e]){i["cols-"+e]="";for(var t=1;t<=e;t++){var a=t/e*100;gAddStyleToSheet(lgSheet,".cols-"+e+" .col-lg-"+t,"width: "+a+"%; float:left;"),gAddStyleToSheet(mdSheet,".cols-"+e+" .col-md-"+t,"width: "+a+"%; float:left;"),gAddStyleToSheet(smSheet,".cols-"+e+" .col-sm-"+t,"width: "+a+"%; float:left;"),gAddStyleToSheet(xsSheet,".cols-"+e+" .col-xs-"+t,"width: "+a+"%; float:left;"),gAddStyleToSheet(lgSheet,".cols-"+e+" .col-lg-push-"+t,"left: "+a+"%;"),gAddStyleToSheet(mdSheet,".cols-"+e+" .col-md-push-"+t,"left: "+a+"%;"),gAddStyleToSheet(smSheet,".cols-"+e+" .col-sm-push-"+t,"left: "+a+"%;"),gAddStyleToSheet(xsSheet,".cols-"+e+" .col-xs-push-"+t,"left: "+a+"%;"),gAddStyleToSheet(lgSheet,".cols-"+e+" .col-lg-pull-"+t,"right: "+a+"%;"),gAddStyleToSheet(mdSheet,".cols-"+e+" .col-md-pull-"+t,"right: "+a+"%;"),gAddStyleToSheet(smSheet,".cols-"+e+" .col-sm-pull-"+t,"right: "+a+"%;"),gAddStyleToSheet(xsSheet,".cols-"+e+" .col-xs-pull-"+t,"right: "+a+"%;")}}}),window.createGrid=function(e){r(e).find(".row[data-columns]").each(function(){var e=r(this).data("columns");if(r(this).addClass("cols-"+e),void 0===i["cols-"+e]){i["cols-"+e]="";for(var t=1;t<=e;t++){var a=t/e*100;gAddStyleToSheet(lgSheet,".cols-"+e+" .col-lg-"+t,"width: "+a+"%; float:left;"),gAddStyleToSheet(mdSheet,".cols-"+e+" .col-md-"+t,"width: "+a+"%; float:left;"),gAddStyleToSheet(smSheet,".cols-"+e+" .col-sm-"+t,"width: "+a+"%; float:left;"),gAddStyleToSheet(xsSheet,".cols-"+e+" .col-xs-"+t,"width: "+a+"%; float:left;"),gAddStyleToSheet(lgSheet,".cols-"+e+" .col-lg-push-"+t,"left: "+a+"%;"),gAddStyleToSheet(mdSheet,".cols-"+e+" .col-md-push-"+t,"left: "+a+"%;"),gAddStyleToSheet(smSheet,".cols-"+e+" .col-sm-push-"+t,"left: "+a+"%;"),gAddStyleToSheet(xsSheet,".cols-"+e+" .col-xs-push-"+t,"left: "+a+"%;"),gAddStyleToSheet(lgSheet,".cols-"+e+" .col-lg-pull-"+t,"right: "+a+"%;"),gAddStyleToSheet(mdSheet,".cols-"+e+" .col-md-pull-"+t,"right: "+a+"%;"),gAddStyleToSheet(smSheet,".cols-"+e+" .col-sm-pull-"+t,"right: "+a+"%;"),gAddStyleToSheet(xsSheet,".cols-"+e+" .col-xs-pull-"+t,"right: "+a+"%;")}}})};var o={};r(".row[data-gutter-width]").each(function(){var e=r(this).data("gutter-width");r(this).addClass("gutter-width-"+e);var t=r(this).data("gutter-scaling");(t="no"!=(t=void 0===t||t)&&"false"!=t&&"0"!=t&&0!==t)&&r(this).addClass("gutter-scaled-width-"+e);var a=r(this).data("flush-row");if((a="yes"==a||"true"==a||"1"==a||1===a)&&r(this).addClass("flush-row"),void 0===o["gutter-width-"+e]){o["gutter-width-"+e]="";var i=Math.floor(e/2);gAddStyleToSheet(lgSheet,".gutter-width-"+e+" [class*='col-lg-']","position: relative; min-height: 1px; padding-left: "+i+"px; padding-right: "+i+"px;"),gAddStyleToSheet(mdSheet,".gutter-width-"+e+" [class*='col-md-']","position: relative; min-height: 1px; padding-left: "+i+"px; padding-right: "+i+"px;"),gAddStyleToSheet(smSheet,".gutter-width-"+e+" [class*='col-sm-']","position: relative; min-height: 1px; padding-left: "+i+"px; padding-right: "+i+"px;"),gAddStyleToSheet(xsSheet,".gutter-width-"+e+" [class*='col-xs-']","position: relative; min-height: 1px; padding-left: "+i+"px; padding-right: "+i+"px;");var n=Math.floor(e/4);gAddStyleToSheet(xsSheet,".gutter-scaled-width-"+e+" [class*='col-xs-']","position: relative; min-height: 1px; padding-left: "+n+"px !important; padding-right: "+n+"px !important;"),gAddStyleToSheet(smSheet,".gutter-scaled-width-"+e+" [class*='col-sm-']","position: relative; min-height: 1px; padding-left: "+n+"px !important; padding-right: "+n+"px !important;"),gAddStyleToSheet(mdSheet,".gutter-scaled-width-"+e+" [class*='col-md-']","position: relative; min-height: 1px; padding-left: "+i+"px !important; padding-right: "+i+"px !important;"),gAddStyleToSheet(lgSheet,".gutter-scaled-width-"+e+" [class*='col-lg-']","position: relative; min-height: 1px; padding-left: "+i+"px !important; padding-right: "+i+"px !important;")}})})}(jQuery),function(e,t,a){"use strict";"function"==typeof window.define&&window.define.amd?window.define(a):"undefined"!=typeof module&&module.exports?module.exports=a():t.exports?t.exports=a():t.Fingerprint2=a()}(0,this,function(){"use strict";var t=function(e){if(!(this instanceof t))return new t(e);this.options=this.extend(e,{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",detectScreenOrientation:!0,sortPluginsFor:[/palemoon/i],userDefinedFonts:[],excludeDoNotTrack:!0}),this.nativeForEach=Array.prototype.forEach,this.nativeMap=Array.prototype.map};return t.prototype={extend:function(e,t){if(null==e)return t;for(var a in e)null!=e[a]&&t[a]!==e[a]&&(t[a]=e[a]);return t},get:function(i){var n=this,a={data:[],addPreprocessedComponent:function(e){var t=e.value;"function"==typeof n.options.preprocessor&&(t=n.options.preprocessor(e.key,t)),a.data.push({key:e.key,value:t})}};a=this.userAgentKey(a),a=this.languageKey(a),a=this.colorDepthKey(a),a=this.deviceMemoryKey(a),a=this.pixelRatioKey(a),a=this.hardwareConcurrencyKey(a),a=this.screenResolutionKey(a),a=this.availableScreenResolutionKey(a),a=this.timezoneOffsetKey(a),a=this.sessionStorageKey(a),a=this.localStorageKey(a),a=this.indexedDbKey(a),a=this.addBehaviorKey(a),a=this.openDatabaseKey(a),a=this.cpuClassKey(a),a=this.platformKey(a),a=this.doNotTrackKey(a),a=this.pluginsKey(a),a=this.canvasKey(a),a=this.webglKey(a),a=this.webglVendorAndRendererKey(a),a=this.adBlockKey(a),a=this.hasLiedLanguagesKey(a),a=this.hasLiedResolutionKey(a),a=this.hasLiedOsKey(a),a=this.hasLiedBrowserKey(a),a=this.touchSupportKey(a),a=this.customEntropyFunction(a),this.fontsKey(a,function(e){var a=[];n.each(e.data,function(e){var t=e.value;t&&"function"==typeof t.join&&(t=t.join(";")),a.push(t)});var t=n.x64hash128(a.join("~~~"),31);return i(t,e.data)})},customEntropyFunction:function(e){return"function"==typeof this.options.customFunction&&e.addPreprocessedComponent({key:"custom",value:this.options.customFunction()}),e},userAgentKey:function(e){return this.options.excludeUserAgent||e.addPreprocessedComponent({key:"user_agent",value:this.getUserAgent()}),e},getUserAgent:function(){return navigator.userAgent},languageKey:function(e){return this.options.excludeLanguage||e.addPreprocessedComponent({key:"language",value:navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||""}),e},colorDepthKey:function(e){return this.options.excludeColorDepth||e.addPreprocessedComponent({key:"color_depth",value:window.screen.colorDepth||-1}),e},deviceMemoryKey:function(e){return this.options.excludeDeviceMemory||e.addPreprocessedComponent({key:"device_memory",value:this.getDeviceMemory()}),e},getDeviceMemory:function(){return navigator.deviceMemory||-1},pixelRatioKey:function(e){return this.options.excludePixelRatio||e.addPreprocessedComponent({key:"pixel_ratio",value:this.getPixelRatio()}),e},getPixelRatio:function(){return window.devicePixelRatio||""},screenResolutionKey:function(e){return this.options.excludeScreenResolution?e:this.getScreenResolution(e)},getScreenResolution:function(e){var t;return t=this.options.detectScreenOrientation&&window.screen.height>window.screen.width?[window.screen.height,window.screen.width]:[window.screen.width,window.screen.height],e.addPreprocessedComponent({key:"resolution",value:t}),e},availableScreenResolutionKey:function(e){return this.options.excludeAvailableScreenResolution?e:this.getAvailableScreenResolution(e)},getAvailableScreenResolution:function(e){var t;return window.screen.availWidth&&window.screen.availHeight&&(t=this.options.detectScreenOrientation?window.screen.availHeight>window.screen.availWidth?[window.screen.availHeight,window.screen.availWidth]:[window.screen.availWidth,window.screen.availHeight]:[window.screen.availHeight,window.screen.availWidth]),void 0!==t&&e.addPreprocessedComponent({key:"available_resolution",value:t}),e},timezoneOffsetKey:function(e){return this.options.excludeTimezoneOffset||e.addPreprocessedComponent({key:"timezone_offset",value:(new Date).getTimezoneOffset()}),e},sessionStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasSessionStorage()&&e.addPreprocessedComponent({key:"session_storage",value:1}),e},localStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasLocalStorage()&&e.addPreprocessedComponent({key:"local_storage",value:1}),e},indexedDbKey:function(e){return!this.options.excludeIndexedDB&&this.hasIndexedDB()&&e.addPreprocessedComponent({key:"indexed_db",value:1}),e},addBehaviorKey:function(e){return!this.options.excludeAddBehavior&&document.body&&document.body.addBehavior&&e.addPreprocessedComponent({key:"add_behavior",value:1}),e},openDatabaseKey:function(e){return!this.options.excludeOpenDatabase&&window.openDatabase&&e.addPreprocessedComponent({key:"open_database",value:1}),e},cpuClassKey:function(e){return this.options.excludeCpuClass||e.addPreprocessedComponent({key:"cpu_class",value:this.getNavigatorCpuClass()}),e},platformKey:function(e){return this.options.excludePlatform||e.addPreprocessedComponent({key:"navigator_platform",value:this.getNavigatorPlatform()}),e},doNotTrackKey:function(e){return this.options.excludeDoNotTrack||e.addPreprocessedComponent({key:"do_not_track",value:this.getDoNotTrack()}),e},canvasKey:function(e){return!this.options.excludeCanvas&&this.isCanvasSupported()&&e.addPreprocessedComponent({key:"canvas",value:this.getCanvasFp()}),e},webglKey:function(e){return!this.options.excludeWebGL&&this.isWebGlSupported()&&e.addPreprocessedComponent({key:"webgl",value:this.getWebglFp()}),e},webglVendorAndRendererKey:function(e){return!this.options.excludeWebGLVendorAndRenderer&&this.isWebGlSupported()&&e.addPreprocessedComponent({key:"webgl_vendor",value:this.getWebglVendorAndRenderer()}),e},adBlockKey:function(e){return this.options.excludeAdBlock||e.addPreprocessedComponent({key:"adblock",value:this.getAdBlock()}),e},hasLiedLanguagesKey:function(e){return this.options.excludeHasLiedLanguages||e.addPreprocessedComponent({key:"has_lied_languages",value:this.getHasLiedLanguages()}),e},hasLiedResolutionKey:function(e){return this.options.excludeHasLiedResolution||e.addPreprocessedComponent({key:"has_lied_resolution",value:this.getHasLiedResolution()}),e},hasLiedOsKey:function(e){return this.options.excludeHasLiedOs||e.addPreprocessedComponent({key:"has_lied_os",value:this.getHasLiedOs()}),e},hasLiedBrowserKey:function(e){return this.options.excludeHasLiedBrowser||e.addPreprocessedComponent({key:"has_lied_browser",value:this.getHasLiedBrowser()}),e},fontsKey:function(e,t){return this.options.excludeJsFonts?this.flashFontsKey(e,t):this.jsFontsKey(e,t)},flashFontsKey:function(t,a){return this.options.excludeFlashFonts?a(t):this.hasSwfObjectLoaded()&&this.hasMinFlashInstalled()?void 0===this.options.swfPath?a(t):void this.loadSwfAndDetectFonts(function(e){t.addPreprocessedComponent({key:"swf_fonts",value:e.join(";")}),a(t)}):a(t)},jsFontsKey:function(m,v){var b=this;return setTimeout(function(){var c=["monospace","sans-serif","serif"],u=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];b.options.extendedJsFonts&&(u=u.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),u=(u=u.concat(b.options.userDefinedFonts)).filter(function(e,t){return u.indexOf(e)===t});var e=document.getElementsByTagName("body")[0],n=document.createElement("div"),h=document.createElement("div"),i={},o={},f=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.texTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e},t=function(e){for(var t=!1,a=0;at.name?1:e.name>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var a=[0,0,0,0];return a[3]+=e[3]+t[3],a[2]+=a[3]>>>16,a[3]&=65535,a[2]+=e[2]+t[2],a[1]+=a[2]>>>16,a[2]&=65535,a[1]+=e[1]+t[1],a[0]+=a[1]>>>16,a[1]&=65535,a[0]+=e[0]+t[0],a[0]&=65535,[a[0]<<16|a[1],a[2]<<16|a[3]]},x64Multiply:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var a=[0,0,0,0];return a[3]+=e[3]*t[3],a[2]+=a[3]>>>16,a[3]&=65535,a[2]+=e[2]*t[3],a[1]+=a[2]>>>16,a[2]&=65535,a[2]+=e[3]*t[2],a[1]+=a[2]>>>16,a[2]&=65535,a[1]+=e[1]*t[3],a[0]+=a[1]>>>16,a[1]&=65535,a[1]+=e[2]*t[2],a[0]+=a[1]>>>16,a[1]&=65535,a[1]+=e[3]*t[1],a[0]+=a[1]>>>16,a[1]&=65535,a[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],a[0]&=65535,[a[0]<<16|a[1],a[2]<<16|a[3]]},x64Rotl:function(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])},x64LeftShift:function(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=this.x64Multiply(e,[4283543511,3981806797]),e=this.x64Xor(e,[0,e[0]>>>1]),e=this.x64Multiply(e,[3301882366,444984403]),e=this.x64Xor(e,[0,e[0]>>>1])},x64hash128:function(e,t){t=t||0;for(var a=(e=e||"").length%16,i=e.length-a,n=[0,t],o=[0,t],r=[0,0],s=[0,0],l=[2277735313,289559509],d=[1291169091,658871167],c=0;c>>0).toString(16)).slice(-8)+("00000000"+(n[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}},t.VERSION="1.7.0",t}),void 0===helper)var helper={};helper.arr={multisort:function(e,a,i){if(void 0===a)for(a=[],x=0;xo?e(t,a,i,n,o+1):0:0==r?1:-1}(e,t,a,i,0)})}},function(n){n.fn.popupWindow=function(i){return this.each(function(){n.fn.popupWindow.defaultSettings={centerBrowser:0,centerScreen:0,height:500,left:0,location:0,menubar:0,resizable:0,scrollbars:0,status:0,width:500,windowName:null,windowURL:null,top:0,toolbar:0},settings=n.extend({},n.fn.popupWindow.defaultSettings,i||{});var e,t,a="height="+settings.height+",width="+settings.width+",toolbar="+settings.toolbar+",scrollbars="+settings.scrollbars+",status="+settings.status+",resizable="+settings.resizable+",location="+settings.location+",menuBar="+settings.menubar;return settings.windowName=settings.windowName||this.name,settings.windowURL=settings.windowURL||this.href,settings.centerBrowser?(t=n.browser.msie?(e=window.screenTop-120+((document.documentElement.clientHeight+120)/2-settings.height/2),window.screenLeft+((document.body.offsetWidth+20)/2-settings.width/2)):(e=window.screenY+(window.outerHeight/2-settings.height/2),window.screenX+(window.outerWidth/2-settings.width/2)),window.open(settings.windowURL,settings.windowName,a+",left="+t+",top="+e).focus()):settings.centerScreen?(e=(screen.height-settings.height)/2,t=(screen.width-settings.width)/2,window.open(settings.windowURL,settings.windowName,a+",left="+t+",top="+e).focus()):window.open(settings.windowURL,settings.windowName,a+",left="+settings.left+",top="+settings.top).focus(),!1})}}(jQuery),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):t(e.jQuery)}(this,function(e){var t,n,d;!function(h){var o,r,f,p,g={},m={},v={},b={},a=Object.prototype.hasOwnProperty,i=[].slice,y=/\.js$/;function x(e,t){return a.call(e,t)}function s(e,t){var a,i,n,o,r,s,l,d,c,u,h,f=t&&t.split("/"),p=v.map,g=p&&p["*"]||{};if(e&&"."===e.charAt(0))if(t){for(f=f.slice(0,f.length-1),r=(e=e.split("/")).length-1,v.nodeIdCompat&&y.test(e[r])&&(e[r]=e[r].replace(y,"")),e=f.concat(e),c=0;c=e.numberOfImages?a:(this.isRetina()&&i.push("retina=1"),a=e.url+e.routes.image+"&_id="+t,n(e,a,i))},r=function(e,t){var a=e.url+e.routes.audio;return t&&(a+="/ogg"),n(e,a)},s=function(e,t){return 0<=t&&t','',i='",n={path:a||"",refreshTitle:t.refreshTitle,refreshAlt:t.refreshAlt,accessibilityTitle:t.accessibilityTitle,accessibilityAlt:t.accessibilityAlt,retinaExtra:e.isRetina()?"@2x":""},s(i,n)},accessibility:function(e,t){var a;return e.supportsAudio()?('{accessibilityDescription}
',a={accessibilityDescription:t.accessibilityDescription,audioURL:e.audioUrl(),audioFieldName:e.audioFieldName()},s('{accessibilityDescription}
',a)):""},images:function(e,t){for(var a,i,n="",o=0,r=e.numberOfImages();o',i={imageUrl:e.imageUrl(o),i:o},n+=s(a,i);return a='{explanation}
{images}
',i={imageFieldName:e.imageFieldName(),explanation:t.explanation.replace(/ANSWER/,e.imageName()),images:n},s(a,i)},audioInput:function(e){var t;return'',t={audioFieldName:e.audioFieldName()},s('',t)},imageInput:function(e,t){var a;return'',a={imageFieldName:e.imageFieldName(),value:e.imageValue(t)},s('',a)},namespaceInput:function(e){var t,a=e.namespace();return a&&0!==a.length?('',t={fieldName:e.namespaceFieldName(),value:a},s('',t)):""}}}),d("visualcaptcha/language",[],function(){"use strict";return{accessibilityAlt:"Sound icon",accessibilityTitle:"Accessibility option: listen to a question and answer it!",accessibilityDescription:"Type below the answer to what you hear. Numbers or words:",explanation:"Click or touch the ANSWER",refreshAlt:"Refresh/reload icon",refreshTitle:"Refresh/reload: get new images and accessibility option!"}}),d("visualcaptcha.jquery",["jquery","visualcaptcha","visualcaptcha/templates","visualcaptcha/language"],function(l,n,d,t){"use strict";var a,o,r,s,c,u,h;a=function(e,t){l.get(e,t,"json")},o=function(){},r=function(e,t,a){var i;i=d.namespaceInput(a)+d.accessibility(a,e.language)+d.images(a,e.language)+d.buttons(a,e.language,e.imgPath),t.html(i)},s=function(e){var t,a=l(this).closest(".visualCaptcha"),i=a.find(".visualCaptcha-accessibility-wrapper"),n=a.find(".visualCaptcha-possibilities"),o=a.find(".visualCaptcha-explanation"),r=i.find("audio");i.hasClass("visualCaptcha-hide")?(n.toggleClass("visualCaptcha-hide"),o.toggleClass("visualCaptcha-hide"),n.find(".img").removeClass("visualCaptcha-selected"),o.find("input").val(""),t=d.audioInput(a.data("captcha")),l(t).insertBefore(r),i.toggleClass("visualCaptcha-hide"),r[0].load(),r[0].play()):(r[0].pause(),i.toggleClass("visualCaptcha-hide"),i.find("input").remove(),o.toggleClass("visualCaptcha-hide"),n.toggleClass("visualCaptcha-hide")),e.preventDefault()},c=function(e){var t,a,i,n=l(this),o=n.closest(".visualCaptcha"),r=o.find(".visualCaptcha-possibilities"),s=o.find(".visualCaptcha-explanation");(a=s.find("input"))&&(a.remove(),r.find("a").removeClass("visualCaptcha-selected")),n.addClass("visualCaptcha-selected"),t=n.find("img").data("index"),i=d.imageInput(o.data("captcha"),t),s.append(l(i)),e.preventDefault()},u=function(e){l(this).closest(".visualCaptcha").data("captcha").refresh(),e.preventDefault()},h=function(e){var t=e.find(".imageField"),a=e.find(".audioField"),i=!(!t.val()&&!a.val());return i?{valid:i,name:t.val()?t.attr("name"):a.attr("name"),value:t.val()?t.val():a.val()}:{valid:i}},l.fn.visualCaptcha=function(e){var i;return i=l.extend({imgPath:"/",language:t,captcha:{request:a}},e),this.addClass("visualCaptcha").on("click",".visualCaptcha-accessibility-button",s).on("click",".visualCaptcha-refresh-button",u).on("click",".visualCaptcha-possibilities a",c),this.each(function(){var e,t,a=l(this);t=l.extend(i.captcha,{_loading:o.bind(null,i,a),_loaded:r.bind(null,i,a)}),void 0!==a.data("namespace")&&(t.namespace=a.data("namespace")),(e=n(t)).getCaptchaData=h.bind(null,a),a.data("captcha",e)})}}),d("jquery",function(){return e}),n("visualcaptcha.jquery")}),function(n){"use strict";var o=function(e,t){this.$element=n(e),this.options=n.extend({},o.defaults,t)};o.defaults={transition_delay:300,refresh_speed:50,display_text:"none",use_percentage:!0,percent_format:function(e){return e+"%"},amount_format:function(e,t,a){return e+" / "+t},update:n.noop,done:n.noop,fail:n.noop},o.prototype.transition=function(){var r=this.$element,s=r.parent(),l=this.$back_text,d=this.$front_text,c=this.options,u=parseInt(r.attr("data-transitiongoal")),h=parseInt(r.attr("aria-valuemin"))||0,f=parseInt(r.attr("aria-valuemax"))||100,p=s.hasClass("vertical"),g=c.update&&"function"==typeof c.update?c.update:Progressbar.defaults.update,m=c.done&&"function"==typeof c.done?c.done:Progressbar.defaults.done,e=c.fail&&"function"==typeof c.fail?c.fail:Progressbar.defaults.fail;if(isNaN(u))e("data-transitiongoal not set");else{var t,v=Math.round(100*(u-h)/(f-h));if("center"===c.display_text&&!l&&!d)this.$back_text=l=n("").addClass("progressbar-back-text").prependTo(s),this.$front_text=d=n("").addClass("progressbar-front-text").prependTo(r),p?(t=s.css("height"),l.css({height:t,"line-height":t}),d.css({height:t,"line-height":t}),n(window).resize(function(){t=s.css("height"),l.css({height:t,"line-height":t}),d.css({height:t,"line-height":t})})):(t=s.css("width"),d.css({width:t}),n(window).resize(function(){t=s.css("width"),d.css({width:t})}));setTimeout(function(){var e,t,a,i,n;p?r.css("height",v+"%"):r.css("width",v+"%");var o=setInterval(function(){i=p?(a=r.height(),s.height()):(a=r.width(),s.width()),e=Math.round(100*a/i),t=Math.round(h+a/i*(f-h)),v<=e&&(e=v,t=u,m(r),clearInterval(o)),"none"!==c.display_text&&(n=c.use_percentage?c.percent_format(e):c.amount_format(t,f,h),"fill"===c.display_text?r.text(n):"center"===c.display_text&&(l.text(n),d.text(n))),r.attr("aria-valuenow",t),g(e,r)},c.refresh_speed)},c.transition_delay)}};var e=n.fn.yopprogressbar;n.fn.yopprogressbar=function(i){return this.each(function(){var e=n(this),t=e.data("bs.progressbar"),a="object"==typeof i&&i;t&&a&&n.extend(t.options,a),t||e.data("bs.progressbar",t=new o(this,a)),t.transition()})},n.fn.yopprogressbar.Constructor=o,n.fn.yopprogressbar.noConflict=function(){return n.fn.yopprogressbar=e,this}}(window.jQuery);var YOPPollReCaptchaElements=[],YOPPollOnLoadRecaptcha=function(){jQuery(".basic-yop-poll-container").each(function(){"2"===jQuery(this).attr("data-cap")&&(YOPPollReCaptchaElements[jQuery(this).attr("data-uid")]=grecaptcha.render("yop-poll-captcha-"+jQuery(this).attr("data-uid"),{sitekey:objectL10n.yopPollParams.apiParams.reCaptcha.siteKey,theme:"light"}))})};jQuery(document).ready(function(T){var e,n,P,a,o,r,s,l,d,c,u,h,f,p,g,m,v,b,t,y,x,w,S,C,k={accessibilityAlt:objectL10n.yopPollParams.captchaParams.accessibilityAlt,accessibilityTitle:objectL10n.yopPollParams.captchaParams.accessibilityTitle,accessibilityDescription:objectL10n.yopPollParams.captchaParams.accessibilityDescription,explanation:objectL10n.yopPollParams.captchaParams.explanation,refreshAlt:objectL10n.yopPollParams.captchaParams.refreshAlt,refreshTitle:objectL10n.yopPollParams.captchaParams.refreshTitle},M=[],A=!1,_=!1,I=!1,D=!1,F=[[]];e=function(e,t){T('.basic-yop-poll-container[data-id="'+e+'"]').find('input[name="_token"]').val(t)},n=function(t,a){T.ajax({type:"POST",url:objectL10n.yopPollParams.urlParams.ajax,dataType:"json",data:{action:"yop_poll_is_user_logged_in"}}).done(function(e){if(!0===e.success)switch(1,a){case"vote":p(t,"wordpress");break;case"show-results":r(t)}else 0,"vote"===a&&T(".basic-vote").popupWindow({windowURL:"http://yahoo.com",windowName:"YOPPollW",height:500,width:450,centerScreen:1})})},P=function(e,t,a){var i="";return-1!==e.indexOf("percentages")&&(i=(i=0 '+answerResultsDetails+""):T(this).find(".basic-answer[data-id="+r[h]+"]").find(".basic-media").append(' '+answerResultsDetails+""),T(this).find(".basic-answer[data-id="+r[h]+"]").append('');T(this).find(".progress .progress-bar").yopprogressbar();break;case"pie":T(this).find(".basic-question-title").append(''),e=T(this).find("#question-results-"+i),t=new Chart(e,{type:"pie",data:a,options:{animateScale:!0,responsive:!0,maintainAspectRatio:!0,legend:{position:"bottom"}}}),F[f].push(t)}})},s=function(e,t){T(e).attr("data-id");var a,i,n=T(e).attr("data-uid"),o={},r=T(e).attr("data-show-results-as"),s=T(e).attr("data-sort-results-by"),l=T(e).attr("data-sort-results-rule"),d=[],c=[],u=[],h={},f=[],p=[],g=[],m=[],v=[],b=0,y={},x="",w="",S=0,C=0,k=0,M=T(e).attr("data-resdet");for(F[n]=[],T(e).find(".basic-stats").hide(),T(e).find(".basic-answers").hide(),T(e).find(".basic-vote-button").hide(),T(e).find(".basic-results-button").hide(),T(e).find(".basic-back-to-vote-button").show(),T(e).find('.basic-element[data-type!="question"]').hide(),S=0;S'),C=0;C':p[S][C],answerResultsDetails=P(M,m[S][C],b),T(e).find('.basic-question[data-id="'+t[S].id+'"]').find(".results-basic-answers").append('
');break;case"horizontal":for(T(e).find('.basic-question[data-id="'+t[S].id+'"]').append(''),C=0;C':p[S][C],answerResultsDetails=P(M,m[S][C],b),T(e).find('.basic-question[data-id="'+t[S].id+'"]').find(".results-basic-answers .row").append('
');createGrid(e);break;case"columns":for(k=1,w="",nrColumns=T(e).find('.basic-question[data-id="'+t[S].id+'"]').attr("data-colnum"),T(e).find('.basic-question[data-id="'+t[S].id+'"]').append(''),C=0;C':p[S][C],answerResultsDetails=P(M,m[S][C],b),w+='
',0==k%parseInt(nrColumns,10)&&(w+="",k')),k++;T(e).find('.basic-question[data-id="'+t[S].id+'"]').find(".results-basic-answers .row").append(w),createGrid(e)}T(e).find('.basic-question[data-id="'+t[S].id+'"]').find(".progress .progress-bar").yopprogressbar();break;case"pie":T(e).find('.basic-question[data-id="'+t[S].id+'"]').append(''),d[S]=T(e).find("#question-results-"+a).get(0).getContext("2d"),c[S]=new Chart(d[S],{type:"pie",data:h,options:{animateScale:!0,responsive:!0,maintainAspectRatio:!0,legend:{position:"bottom"}}}),F[n].push(c[S])}h.length=0,u.length=0,v.length=0,p.length=0,m.length=0,b=g.length=0}},l=function(e,t){var a=0;for(a=0;a'+objectL10n.yopPollParams.voteParams.thankYou+"
"),T("html, body").animate({scrollTop:T(T(a).closest(".bootstrap-yop")).offset().top},1500,"linear")),"yes"===response.redirect&&window.setTimeout(function(){window.location.href=response.redirect_to},1e3*response.redirect_after)):(T(a).find(".basic-message").addClass("basic-error"),T(a).find(".basic-message").removeClass("hide"),T(a).find(".basic-gdpr-consent").show(),T(a).find(".visualCaptcha").show(),T(a).find(".yop-poll-recaptcha").show(),T(a).find(".basic-message").html(''+e.data+"
"),T("html, body").animate({scrollTop:T(T(a).closest(".bootstrap-yop")).offset().top},1500,"linear"))}).fail(function(e,t){})}):(e=f(a,i,"",n),T.ajax({type:"POST",url:objectL10n.yopPollParams.urlParams.ajax,dataType:"json",data:{action:"yop_poll_record_vote",_token:T(a).find('input[name="_token"]').val(),data:JSON.stringify(e)}}).done(function(e){T(a).find(".basic-message").removeClass("show"),T(a).find(".basic-message").addClass("hide"),T(a).find(".basic-overlay").addClass("hide"),T(a).find(".visualCaptcha").hide(),T(a).find(".yop-poll-recaptcha").hide(),T(a).find(".basic-gdpr-consent").hide(),!0===e.success?(response=e.data,c(a),""!==response.total_votes&&T(a).find(".basic-stats-votes-number").text(response.total_votes),""!==response.total_answers&&T(a).find(".basic-stats-answers-number").text(response.total_answers),!0===response.rebuild&&l(a,JSON.parse(response.elements)),!0===response.show_results?(d(a,JSON.parse(response.results)),s(a,JSON.parse(response.results))):(T(a).find(".basic-message").addClass("basic-success"),T(a).find(".basic-message").removeClass("hide"),T(a).find(".basic-gdpr-consent").show(),T(a).find(".visualCaptcha").show(),T(a).find(".yop-poll-recaptcha").show(),T(a).find(".basic-message").html(''+objectL10n.yopPollParams.voteParams.thankYou+"
"),T("html, body").animate({scrollTop:T(T(a).closest(".bootstrap-yop")).offset().top},1500,"linear")),"yes"===response.redirect&&window.setTimeout(function(){window.location.href=response.redirect_to},1e3*response.redirect_after)):(T(a).find(".basic-message").addClass("basic-error"),T(a).find(".basic-message").removeClass("hide"),T(a).find(".basic-gdpr-consent").show(),T(a).find(".visualCaptcha").show(),T(a).find(".yop-poll-recaptcha").show(),T(a).find(".basic-message").html(''+e.data+"
"))}).fail(function(e,t){})),1},g=function(t){var a=T(t).attr("data-id"),i=T(t).attr("data-uid"),n=[];T.ajax({type:"POST",url:objectL10n.yopPollParams.urlParams.ajax,dataType:"json",async:!1,data:{action:"yop_poll_is_user_logged_in"},success:function(e){!0===e.success?(n.id="",n.firstName="",n.lastName="",n.email="",p(t,"wordpress",n)):T(".basic-vote").popupWindow({windowURL:objectL10n.yopPollParams.urlParams.wpLogin+encodeURIComponent("&poll_id="+a+"&puid="+i),windowName:"",height:500,location:1,menubar:1,resizable:0,scrollbars:1,status:0,width:450,toolbar:1,centerScreen:1})}})},m=function(t){var a=[];!1===A?FB.login(function(e){"connected"===e.status&&FB.api("/me",{fields:"first_name, last_name, email"},function(e){a.id="",a.firstName=e.first_name,a.lastName=e.last_name,a.email=e.email,p(t,"facebook",a)})},{scope:"public_profile, email",return_scopes:!0}):FB.api("/me",{fields:"first_name, last_name, email"},function(e){a.id="",a.firstName=e.first_name,a.lastName=e.last_name,a.email=e.email,p(t,"facebook",a)})},v=function(e){var t=[];!1===_?gapi.auth2.getAuthInstance().signIn().then(function(){googleUser=gapi.auth2.getAuthInstance().currentUser.get(),googleUserProfile=googleUser.getBasicProfile(),t.id="",t.firstName=googleUserProfile.getGivenName(),t.lastName=googleUserProfile.getFamilyName(),t.email=googleUserProfile.getEmail(),p(e,"google",t)}):(googleUser=gapi.auth2.getAuthInstance().currentUser.get(),googleUserProfile=googleUser.getBasicProfile(),t.id="",t.firstName=googleUserProfile.getGivenName(),t.lastName=googleUserProfile.getFamilyName(),t.email=googleUserProfile.getEmail(),p(e,"google",t))},T(".basic-yop-poll-container .basic-vote-button").click(function(e){var a,t,i,n,o,r,s=[],l=!1;if(a=T(this).closest(".basic-yop-poll-container"),t=T(a).attr("data-id"),i=T(a).attr("data-uid"),""!==t){if(n=T(a).attr("data-access").split(","),T(a).find(".basic-element").each(function(){var e=T(this).attr("data-type"),t=T(this).attr("data-id");switch(e){case"question":o=T(this).attr("data-min"),r=T(this).attr("data-max"),!1===l&&0===T(this).find('input[name="answer['+t+']"]:checked').length&&(T(a).find(".basic-message").html(''+objectL10n.yopPollParams.voteParams.noAnswersSelected+"
"),T(a).find(".basic-message").addClass("show basic-error"),T(a).find(".basic-overlay").addClass("hide"),l=!0,T("html, body").animate({scrollTop:T(T(a).closest(".bootstrap-yop")).offset().top},1500,"linear")),!1===l&&o>T(this).find('input[name="answer['+t+']"]:checked').length&&(T(a).find(".basic-message").html(''+objectL10n.yopPollParams.voteParams.minAnswersRequired.replace("{min_answers_allowed}",o)+"
"),T(a).find(".basic-message").addClass("show basic-error"),T(a).find(".basic-overlay").addClass("hide"),l=!0,T("html, body").animate({scrollTop:T(T(a).closest(".bootstrap-yop")).offset().top},1500,"linear")),!1===l&&r'+objectL10n.yopPollParams.voteParams.maxAnswersRequired.replace("{max_answers_allowed}",r)+"
"),T(a).find(".basic-message").addClass("show basic-error"),T(a).find(".basic-overlay").addClass("hide"),l=!0,T("html, body").animate({scrollTop:T(T(a).closest(".bootstrap-yop")).offset().top},1500,"linear")),!1===l&&1===T(this).find('input[name="answer['+t+']"][value="0"]:checked').length&&""===T(this).find('input[name="other['+t+']"]').val().trim()&&(T(this).find('input[name="other['+t+']"]').focus(),T(this).find('input[name="other['+t+']"]').closest(".basic-text").addClass("has-error"),T(a).find(".basic-message").html(''+objectL10n.yopPollParams.voteParams.noAnswerForOther+"
"),T(a).find(".basic-message").addClass("show basic-error"),T(a).find(".basic-overlay").addClass("hide"),l=!0,T("html, body").animate({scrollTop:T(T(a).closest(".bootstrap-yop")).offset().top},1500,"linear"));break;case"custom-field":!1===l&&"yes"===T(this).attr("data-required")&&""===T(this).find('input[name="cfield['+t+']"]').val().trim()&&(T(this).addClass("has-error"),T(a).find(".basic-message").html(''+objectL10n.yopPollParams.voteParams.noValueForCustomField.replace("{custom_field_name}",T(this).find("label").text())+"
"),T(a).find(".basic-message").addClass("show basic-error"),T(a).find(".basic-overlay").addClass("hide"),l=!0,T("html, body").animate({scrollTop:T(T(a).closest(".bootstrap-yop")).offset().top},1500,"linear"))}}),!1===l&&"yes"===T(a).attr("data-gdpr")&&"consent"===T(a).attr("data-gdpr-sol")&&!1===T(a).find(".gdpr-consent").is(":checked")&&(T(a).find(".basic-message").html(''+objectL10n.yopPollParams.voteParams.consentNotChecked+"
"),T(a).find(".basic-message").addClass("show basic-error"),T(a).find(".basic-overlay").addClass("hide"),l=!0,T("html, body").animate({scrollTop:T(T(a).closest(".bootstrap-yop")).offset().top},1500,"linear")),!1===l&&"1"===T(a).attr("data-cap")&&!1===M[i].data("captcha").getCaptchaData().valid&&(T(a).find(".basic-message").html(''+objectL10n.yopPollParams.voteParams.noCaptchaSelected+"
"),T(a).find(".basic-message").addClass("show basic-error"),T(a).find(".basic-overlay").addClass("hide"),l=!0,T("html, body").animate({scrollTop:T(T(a).closest(".bootstrap-yop")).offset().top},1500,"linear")),!1===l)if(T(a).find(".basic-message").addClass("hide"),T(a).find(".basic-overlay").removeClass("hide"),1===n.length)switch(b(a),n[0]){case"guest":s.id="",s.firstName="",s.lastName="",s.email="",p(a,"anonymous",s);break;case"wordpress":g(a);break;case"facebook":m(a);break;case"google":v(a)}else T(a).find(".basic-preloader").addClass("hide"),T(a).find(".basic-vote-options").removeClass("hide")}else T(a).find(".basic-message").addClass("show basic-error"),T(a).find(".basic-overlay").addClass("hide"),T(a).find(".basic-message").html(''+objectL10n.yopPollParams.voteParams.invalidPoll+"
");e.preventDefault()}),T(".basic-yop-poll-container .basic-anonymous").click(function(e){var t=T(this).closest(".basic-yop-poll-container"),a=(T(t).attr("data-id"),[]);b(t),a.id="",a.firstName="",a.lastName="",a.email="",p(t,"anonymous",a),e.preventDefault()}),T(".basic-yop-poll-container .basic-wordpress").click(function(e){var t=T(this).closest(".basic-yop-poll-container");b(t),g(t),e.preventDefault()}),T(".basic-yop-poll-container .basic-facebook").click(function(e){var t=T(this).closest(".basic-yop-poll-container");b(t),m(t),e.preventDefault()}),T(".basic-yop-poll-container .basic-google").click(function(e){var t=T(this).closest(".basic-yop-poll-container");b(t),v(t),e.preventDefault()}),T(".basic-yop-poll-container .basic-results-button").click(function(e){var t=T(this).closest(".basic-yop-poll-container"),a=(T(t).attr("data-id"),T(t).attr("data-temp"));c(t),"basic-pretty"===a&&h(t),T(t).find(".basic-element").each(function(){"question"===T(this).attr("data-type")?(T(this).find('input[type="radio"]').hide(),T(this).find('input[type="checkbox"]').hide(),T(this).find(".basic-other-answer").hide()):T(this).hide()}),T(t).find(".basic-gdpr-consent").hide(),T(t).find(".visualCaptcha").hide(),T(t).find(".yop-poll-recaptcha").hide(),T(t).find(".basic-vote-button").hide(),T(t).find(".basic-results-button").hide(),T(t).find(".basic-back-to-vote-button").show(),o(t),e.preventDefault()}),T(".basic-yop-poll-container .basic-back-to-vote-button").click(function(e){var t=T(this).closest(".basic-yop-poll-container"),a=(T(t).attr("data-id"),T(t).attr("data-show-results-moment")),i=T(t).attr("data-temp");c(t),T(t).find(".basic-element").each(function(){T(this).attr("data-id");"question"===T(this).attr("data-type")?(T(this).find('input[type="radio"]').show(),T(this).find('input[type="checkbox"]').show(),T(this).find(".basic-answers").show(),T(this).find(".basic-other-answer").show()):T(this).show()}),"basic-pretty"===i&&u(t),T(t).find(".basic-gdpr-consent").show(),T(t).find(".visualCaptcha").show(),T(t).find(".yop-poll-recaptcha").show(),T(t).find(".basic-stats").show(),T(t).find(".basic-vote-button").show(),T(t).find(".basic-results-button").show(),T(t).find(".basic-back-to-vote-button").hide(),"2"===T(t).attr("data-cap")&&grecaptcha.reset(YOPPollReCaptchaElements[T(t).attr("data-uid")]),void 0!==a&&-1!==T(t).attr("data-show-results-moment").indexOf("before-vote")&&("registered"===T(t).attr("data-show-results-to")?n(T(t),"show-results"):r(t)),e.preventDefault()}),b=function(e){T(e).find(".basic-overlay").find(".basic-vote-options").addClass("hide"),T(e).find(".basic-overlay").find(".basic-preloader").removeClass("hide")},t=function(){gapi.client.init({apiKey:objectL10n.yopPollParams.apiParams.google.apiKey,clientId:objectL10n.yopPollParams.apiParams.google.clientId,scope:"profile"}).then(function(){gapi.auth2.getAuthInstance().isSignedIn.listen(y),y(gapi.auth2.getAuthInstance().isSignedIn.get())})},y=function(e){!0===e&&(_=!0)},!0===I&&(window.fbAsyncInit=function(){FB.init({appId:objectL10n.yopPollParams.apiParams.facebook.appId,xfbml:!0,version:"v2.8"}),FB.getLoginStatus(function(e){A="connected"===e.status,hasCheckedFb=!0})},x=document,w="facebook-jssdk",C=x.getElementsByTagName("script")[0],x.getElementById(w)||((S=x.createElement("script")).id=w,S.src="//connect.facebook.net/en_US/sdk.js",C.parentNode.insertBefore(S,C))),!0===D&&gapi.load("client:auth2",t),window.YOPPollSendBasicVote=p,window.YOPPollBasicUpdateToken=e});
// source --> http://indianatalkssports.com/wp-content/plugins/wcp-openweather/assets/libs/colorbox/jquery.colorbox-min.js?ver=5.2.1
/*!
Colorbox 1.6.0
license: MIT
http://www.jacklmoore.com/colorbox
*/
(function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in y[0]&&!y[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),y.focus())}function c(t){c.str!==t&&(y.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!$){$=q=!0,c(_.get("className")),y.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=(l!==!1?Math.min(h,a(l,"x")):h)-z-D,_.h=(f!==!1?Math.min(s,a(f,"y")):s)-N-j,I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(S).hide(),y.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo(""),w()}}function p(){y||(V=!1,E=t(i),y=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),M=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),x=n(se,"Wrapper"),b=n(se,"Content").append(S=n(se,"Title"),F=n(se,"Current"),P=t('').attr({id:Z+"Previous"}),K=t('').attr({id:Z+"Next"}),R=n("button","Slideshow"),M),B=t('').attr({id:Z+"Close"}),x.append(n(se).append(n(se,"TopLeft"),T=n(se,"TopCenter"),n(se,"TopRight")),n(se,!1,"clear:left").append(C=n(se,"MiddleLeft"),b,H=n(se,"MiddleRight")),n(se,!1,"clear:left").append(n(se,"BottomLeft"),k=n(se,"BottomCenter"),n(se,"BottomRight"))).find("div div").css({"float":"left"}),L=n(se,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(F).add(R)),e.body&&!y.parent().length&&t(e.body).append(v,y.append(x,L))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return y?(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),v.click(function(){_.get("overlayClose")&&J.close()}),t(e).bind("keydown."+Z,function(t){var e=t.keyCode;$&&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),$&&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+Z,"."+te,i):t("."+te).live("click."+Z,i)),!0):!1}function w(){var e,o,r,h=J.prep,d=++le;if(q=!0,U=!1,u(he),u(ie),_.get("onLoad"),_.h=_.get("height")?a(_.get("height"),"y")-N-j:_.get("innerHeight")&&a(_.get("innerHeight"),"y"),_.w=_.get("width")?a(_.get("width"),"x")-z-D:_.get("innerWidth")&&a(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=a(_.get("maxWidth"),"x")-z-D,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=a(_.get("maxHeight"),"y")-N-j,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),Q=setTimeout(function(){M.show()},100),_.get("inline")){var c=t(e);r=t("").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),U=_.get("createImg"),t(U).addClass(Z+"Photo").bind("error",function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var t;_.get("retinaImage")&&i.devicePixelRatio>1&&(U.height=U.height/i.devicePixelRatio,U.width=U.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){U.height-=U.height*t,U.width-=U.width*t},_.mw&&U.width>_.mw&&(t=(U.width-_.mw)/U.width,o()),_.mh&&U.height>_.mh&&(t=(U.height-_.mh)/U.height,o())),_.h&&(U.style.marginTop=Math.max(_.mh-U.height,0)/2+"px"),W[1]&&(_.get("loop")||W[A+1])&&(U.style.cursor="pointer",U.onclick=function(){J.next()}),U.style.width=U.width+"px",U.style.height=U.height+"px",h(U)},1)}),U.src=e):e&&L.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,y,x,b,T,C,H,k,W,E,I,L,M,S,F,R,K,P,B,O,_,j,D,N,z,A,U,$,q,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullScreen=!0,i}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("
"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[A+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){R.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),y.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),R.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),y.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,R.hide(),t(),ae.unbind(ne,e).unbind(ie,t),y.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),R.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;return e=e||{},t.isFunction(o)&&(o=t("
"),e.open=!0),o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(y[0].style.width,10)-D+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(y[0].style.height,10)-j+"px"}var r,h,s,l=0,d=0,c=y.offset();if(E.unbind("resize."+Z),y.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,y.css({position:"fixed"})):(l=h,d=s,y.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-z-D-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-z-D,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-N-j-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-N-j,0)/2),y.css({top:c.top,left:c.left,visibility:"visible"}),x[0].style.width=x[0].style.height="9999px",r={width:_.w+z+D,height:_.h+N+j,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||y.css(r),y.dequeue().animate(r,{duration:e||0,complete:function(){n(),q=!1,x[0].style.width=_.w+z+D+"px",x[0].style.height=_.h+N+j+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;$&&(t=t||{},t.width&&(_.w=a(t.width,"x")-z-D),t.innerWidth&&(_.w=a(t.innerWidth,"x")),I.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-N-j),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=I.scrollTop(),I.css({height:"auto"}),_.h=I.height()),I.css({height:_.h}),e&&I.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||I.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||I.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if($){var d,g="none"===_.get("transition")?0:_.get("speed");I.remove(),I=n(se,"LoadedContent").append(i),I.hide().appendTo(L.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),L.hide(),t(U).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&y[0].style.removeAttribute("filter")}var n,o,a=W.length;$&&(o=function(){clearTimeout(Q),M.hide(),u(ne),_.get("onComplete")},S.html(_.get("title")).show(),I.show(),a>1?("string"==typeof _.get("current")&&F.html(_.get("current").replace("{current}",A+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>A?"show":"hide"]().html(_.get("next")),P[_.get("loop")||A?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=_.get("createIframe"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),"class":Z+"Iframe"}).one("load",o).appendTo(I),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?y.fadeTo(g,1,i):i())},"fade"===_.get("transition")?y.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!q&&W[1]&&(_.get("loop")||W[A+1])&&(A=h(1),f(W[A]))},J.prev=function(){!q&&W[1]&&(_.get("loop")||A)&&(A=h(-1),f(W[A]))},J.close=function(){$&&!G&&(G=!0,$=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),y.stop().fadeTo(_.get("fadeOut")||0,0,function(){y.hide(),v.hide(),u(he),I.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){y&&(y.stop(),t[Y].close(),y.stop(!1,!0).remove(),v.remove(),G=!1,y=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);
// source --> http://indianatalkssports.com/wp-includes/js/jquery/ui/mouse.min.js?ver=1.11.4
/*!
* jQuery UI Mouse 1.11.4
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/mouse/
*/
!function(a){"function"==typeof define&&define.amd?define(["jquery","./widget"],a):a(jQuery)}(function(a){var b=!1;return a(document).mouseup(function(){b=!1}),a.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(!0===a.data(c.target,b.widgetName+".preventClickEvent"))return a.removeData(c.target,b.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(c){if(!b){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(c),this._mouseDownEvent=c;var d=this,e=1===c.which,f=!("string"!=typeof this.options.cancel||!c.target.nodeName)&&a(c.target).closest(this.options.cancel).length;return!(e&&!f&&this._mouseCapture(c))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=this._mouseStart(c)!==!1,!this._mouseStarted)?(c.preventDefault(),!0):(!0===a.data(c.target,this.widgetName+".preventClickEvent")&&a.removeData(c.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),c.preventDefault(),b=!0,!0))}},_mouseMove:function(b){if(this._mouseMoved){if(a.ui.ie&&(!document.documentMode||document.documentMode<9)&&!b.button)return this._mouseUp(b);if(!b.which)return this._mouseUp(b)}return(b.which||b.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted)},_mouseUp:function(c){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,c.target===this._mouseDownEvent.target&&a.data(c.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(c)),b=!1,!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});
// source --> http://indianatalkssports.com/wp-includes/js/jquery/ui/draggable.min.js?ver=1.11.4
/*!
* jQuery UI Draggable 1.11.4
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/draggable/
*/
!function(a){"function"==typeof define&&define.amd?define(["jquery","./core","./mouse","./widget"],a):a(jQuery)}(function(a){return a.widget("ui.draggable",a.ui.mouse,{version:"1.11.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(a,b){this._super(a,b),"handle"===a&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(b){var c=this.options;return this._blurActiveElement(b),!(this.helper||c.disabled||a(b.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(b),!!this.handle&&(this._blockFrames(c.iframeFix===!0?"iframe":c.iframeFix),!0))},_blockFrames:function(b){this.iframeBlocks=this.document.find(b).map(function(){var b=a(this);return a("
").css("position","absolute").appendTo(b.parent()).outerWidth(b.outerWidth()).outerHeight(b.outerHeight()).offset(b.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(b){var c=this.document[0];if(this.handleElement.is(b.target))try{c.activeElement&&"body"!==c.activeElement.nodeName.toLowerCase()&&a(c.activeElement).blur()}catch(d){}},_mouseStart:function(b){var c=this.options;return this.helper=this._createHelper(b),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===a(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(b),this.originalPosition=this.position=this._generatePosition(b,!1),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),this._setContainment(),this._trigger("start",b)===!1?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this._normalizeRightBottom(),this._mouseDrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b),!0)},_refreshOffsets:function(a){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:a.pageX-this.offset.left,top:a.pageY-this.offset.top}},_mouseDrag:function(b,c){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(b,!0),this.positionAbs=this._convertPositionTo("absolute"),!c){var d=this._uiHash();if(this._trigger("drag",b,d)===!1)return this._mouseUp({}),!1;this.position=d.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mouseStop:function(b){var c=this,d=!1;return a.ui.ddmanager&&!this.options.dropBehaviour&&(d=a.ui.ddmanager.drop(this,b)),this.dropped&&(d=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!d||"valid"===this.options.revert&&d||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)?a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",b)!==!1&&c._clear()}):this._trigger("stop",b)!==!1&&this._clear(),!1},_mouseUp:function(b){return this._unblockFrames(),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),this.handleElement.is(b.target)&&this.element.focus(),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){return!this.options.handle||!!a(b.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper),e=d?a(c.helper.apply(this.element[0],[b])):"clone"===c.helper?this.element.clone().removeAttr("id"):this.element;return e.parents("body").length||e.appendTo("parent"===c.appendTo?this.element[0].parentNode:c.appendTo),d&&e[0]===this.element[0]&&this._setPositionRelative(),e[0]===this.element[0]||/(fixed|absolute)/.test(e.css("position"))||e.css("position","absolute"),e},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_isRootNode:function(a){return/(html|body)/i.test(a.tagName)||a===this.document[0]},_getParentOffset:function(){var b=this.offsetParent.offset(),c=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==c&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var a=this.element.position(),b=this._isRootNode(this.scrollParent[0]);return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+(b?0:this.scrollParent.scrollTop()),left:a.left-(parseInt(this.helper.css("left"),10)||0)+(b?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options,f=this.document[0];return this.relativeContainer=null,e.containment?"window"===e.containment?void(this.containment=[a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,a(window).scrollLeft()+a(window).width()-this.helperProportions.width-this.margins.left,a(window).scrollTop()+(a(window).height()||f.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===e.containment?void(this.containment=[0,0,a(f).width()-this.helperProportions.width-this.margins.left,(a(f).height()||f.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):e.containment.constructor===Array?void(this.containment=e.containment):("parent"===e.containment&&(e.containment=this.helper[0].parentNode),c=a(e.containment),d=c[0],void(d&&(b=/(scroll|auto)/.test(c.css("overflow")),this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(b?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(b?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=c))):void(this.containment=null)},_convertPositionTo:function(a,b){b||(b=this.position);var c="absolute"===a?1:-1,d=this._isRootNode(this.scrollParent[0]);return{top:b.top+this.offset.relative.top*c+this.offset.parent.top*c-("fixed"===this.cssPosition?-this.offset.scroll.top:d?0:this.offset.scroll.top)*c,left:b.left+this.offset.relative.left*c+this.offset.parent.left*c-("fixed"===this.cssPosition?-this.offset.scroll.left:d?0:this.offset.scroll.left)*c}},_generatePosition:function(a,b){var c,d,e,f,g=this.options,h=this._isRootNode(this.scrollParent[0]),i=a.pageX,j=a.pageY;return h&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),b&&(this.containment&&(this.relativeContainer?(d=this.relativeContainer.offset(),c=[this.containment[0]+d.left,this.containment[1]+d.top,this.containment[2]+d.left,this.containment[3]+d.top]):c=this.containment,a.pageX-this.offset.click.leftc[2]&&(i=c[2]+this.offset.click.left),a.pageY-this.offset.click.top>c[3]&&(j=c[3]+this.offset.click.top)),g.grid&&(e=g.grid[1]?this.originalPageY+Math.round((j-this.originalPageY)/g.grid[1])*g.grid[1]:this.originalPageY,j=c?e-this.offset.click.top>=c[1]||e-this.offset.click.top>c[3]?e:e-this.offset.click.top>=c[1]?e-g.grid[1]:e+g.grid[1]:e,f=g.grid[0]?this.originalPageX+Math.round((i-this.originalPageX)/g.grid[0])*g.grid[0]:this.originalPageX,i=c?f-this.offset.click.left>=c[0]||f-this.offset.click.left>c[2]?f:f-this.offset.click.left>=c[0]?f-g.grid[0]:f+g.grid[0]:f),"y"===g.axis&&(i=this.originalPageX),"x"===g.axis&&(j=this.originalPageY)),{top:j-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:h?0:this.offset.scroll.top),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:h?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(b,c,d){return d=d||this._uiHash(),a.ui.plugin.call(this,b,[c,d,this],!0),/^(drag|start|stop)/.test(b)&&(this.positionAbs=this._convertPositionTo("absolute"),d.offset=this.positionAbs),a.Widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),a.ui.plugin.add("draggable","connectToSortable",{start:function(b,c,d){var e=a.extend({},c,{item:d.element});d.sortables=[],a(d.options.connectToSortable).each(function(){var c=a(this).sortable("instance");c&&!c.options.disabled&&(d.sortables.push(c),c.refreshPositions(),c._trigger("activate",b,e))})},stop:function(b,c,d){var e=a.extend({},c,{item:d.element});d.cancelHelperRemoval=!1,a.each(d.sortables,function(){var a=this;a.isOver?(a.isOver=0,d.cancelHelperRemoval=!0,a.cancelHelperRemoval=!1,a._storedCSS={position:a.placeholder.css("position"),top:a.placeholder.css("top"),left:a.placeholder.css("left")},a._mouseStop(b),a.options.helper=a.options._helper):(a.cancelHelperRemoval=!0,a._trigger("deactivate",b,e))})},drag:function(b,c,d){a.each(d.sortables,function(){var e=!1,f=this;f.positionAbs=d.positionAbs,f.helperProportions=d.helperProportions,f.offset.click=d.offset.click,f._intersectsWith(f.containerCache)&&(e=!0,a.each(d.sortables,function(){return this.positionAbs=d.positionAbs,this.helperProportions=d.helperProportions,this.offset.click=d.offset.click,this!==f&&this._intersectsWith(this.containerCache)&&a.contains(f.element[0],this.element[0])&&(e=!1),e})),e?(f.isOver||(f.isOver=1,d._parent=c.helper.parent(),f.currentItem=c.helper.appendTo(f.element).data("ui-sortable-item",!0),f.options._helper=f.options.helper,f.options.helper=function(){return c.helper[0]},b.target=f.currentItem[0],f._mouseCapture(b,!0),f._mouseStart(b,!0,!0),f.offset.click.top=d.offset.click.top,f.offset.click.left=d.offset.click.left,f.offset.parent.left-=d.offset.parent.left-f.offset.parent.left,f.offset.parent.top-=d.offset.parent.top-f.offset.parent.top,d._trigger("toSortable",b),d.dropped=f.element,a.each(d.sortables,function(){this.refreshPositions()}),d.currentItem=d.element,f.fromOutside=d),f.currentItem&&(f._mouseDrag(b),c.position=f.position)):f.isOver&&(f.isOver=0,f.cancelHelperRemoval=!0,f.options._revert=f.options.revert,f.options.revert=!1,f._trigger("out",b,f._uiHash(f)),f._mouseStop(b,!0),f.options.revert=f.options._revert,f.options.helper=f.options._helper,f.placeholder&&f.placeholder.remove(),c.helper.appendTo(d._parent),d._refreshOffsets(b),c.position=d._generatePosition(b,!0),d._trigger("fromSortable",b),d.dropped=!1,a.each(d.sortables,function(){this.refreshPositions()}))})}}),a.ui.plugin.add("draggable","cursor",{start:function(b,c,d){var e=a("body"),f=d.options;e.css("cursor")&&(f._cursor=e.css("cursor")),e.css("cursor",f.cursor)},stop:function(b,c,d){var e=d.options;e._cursor&&a("body").css("cursor",e._cursor)}}),a.ui.plugin.add("draggable","opacity",{start:function(b,c,d){var e=a(c.helper),f=d.options;e.css("opacity")&&(f._opacity=e.css("opacity")),e.css("opacity",f.opacity)},stop:function(b,c,d){var e=d.options;e._opacity&&a(c.helper).css("opacity",e._opacity)}}),a.ui.plugin.add("draggable","scroll",{start:function(a,b,c){c.scrollParentNotHidden||(c.scrollParentNotHidden=c.helper.scrollParent(!1)),c.scrollParentNotHidden[0]!==c.document[0]&&"HTML"!==c.scrollParentNotHidden[0].tagName&&(c.overflowOffset=c.scrollParentNotHidden.offset())},drag:function(b,c,d){var e=d.options,f=!1,g=d.scrollParentNotHidden[0],h=d.document[0];g!==h&&"HTML"!==g.tagName?(e.axis&&"x"===e.axis||(d.overflowOffset.top+g.offsetHeight-b.pageY=0;m--)i=d.snapElements[m].left-d.margins.left,j=i+d.snapElements[m].width,k=d.snapElements[m].top-d.margins.top,l=k+d.snapElements[m].height,rj+p||tl+p||!a.contains(d.snapElements[m].item.ownerDocument,d.snapElements[m].item)?(d.snapElements[m].snapping&&d.options.snap.release&&d.options.snap.release.call(d.element,b,a.extend(d._uiHash(),{snapItem:d.snapElements[m].item})),d.snapElements[m].snapping=!1):("inner"!==o.snapMode&&(e=Math.abs(k-t)<=p,f=Math.abs(l-s)<=p,g=Math.abs(i-r)<=p,h=Math.abs(j-q)<=p,e&&(c.position.top=d._convertPositionTo("relative",{top:k-d.helperProportions.height,left:0}).top),f&&(c.position.top=d._convertPositionTo("relative",{top:l,left:0}).top),g&&(c.position.left=d._convertPositionTo("relative",{top:0,left:i-d.helperProportions.width}).left),h&&(c.position.left=d._convertPositionTo("relative",{top:0,left:j}).left)),n=e||f||g||h,"outer"!==o.snapMode&&(e=Math.abs(k-s)<=p,f=Math.abs(l-t)<=p,g=Math.abs(i-q)<=p,h=Math.abs(j-r)<=p,e&&(c.position.top=d._convertPositionTo("relative",{top:k,left:0}).top),f&&(c.position.top=d._convertPositionTo("relative",{top:l-d.helperProportions.height,left:0}).top),g&&(c.position.left=d._convertPositionTo("relative",{top:0,left:i}).left),h&&(c.position.left=d._convertPositionTo("relative",{top:0,left:j-d.helperProportions.width}).left)),!d.snapElements[m].snapping&&(e||f||g||h||n)&&d.options.snap.snap&&d.options.snap.snap.call(d.element,b,a.extend(d._uiHash(),{snapItem:d.snapElements[m].item})),d.snapElements[m].snapping=e||f||g||h||n)}}),a.ui.plugin.add("draggable","stack",{start:function(b,c,d){var e,f=d.options,g=a.makeArray(a(f.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});g.length&&(e=parseInt(a(g[0]).css("zIndex"),10)||0,a(g).each(function(b){a(this).css("zIndex",e+b)}),this.css("zIndex",e+g.length))}}),a.ui.plugin.add("draggable","zIndex",{start:function(b,c,d){var e=a(c.helper),f=d.options;e.css("zIndex")&&(f._zIndex=e.css("zIndex")),e.css("zIndex",f.zIndex)},stop:function(b,c,d){var e=d.options;e._zIndex&&a(c.helper).css("zIndex",e._zIndex)}}),a.ui.draggable});
// source --> http://indianatalkssports.com/wp-includes/js/jquery/ui/slider.min.js?ver=1.11.4
/*!
* jQuery UI Slider 1.11.4
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/slider/
*/
!function(a){"function"==typeof define&&define.amd?define(["jquery","./core","./mouse","./widget"],a):a(jQuery)}(function(a){return a.widget("ui.slider",a.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var b,c,d=this.options,e=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f="",g=[];for(c=d.values&&d.values.length||1,e.length>c&&(e.slice(c).remove(),e=e.slice(0,c)),b=e.length;b
").appendTo(this.element),c="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(c+("min"===b.range||"max"===b.range?" ui-slider-range-"+b.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(b){var c,d,e,f,g,h,i,j,k=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),c={x:b.pageX,y:b.pageY},d=this._normValueFromMouse(c),e=this._valueMax()-this._valueMin()+1,this.handles.each(function(b){var c=Math.abs(d-k.values(b));(e>c||e===c&&(b===k._lastChangedValue||k.values(b)===l.min))&&(e=c,f=a(this),g=b)}),h=this._start(b,g),h!==!1&&(this._mouseSliding=!0,this._handleIndex=g,f.addClass("ui-state-active").focus(),i=f.offset(),j=!a(b.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=j?{left:0,top:0}:{left:b.pageX-i.left-f.width()/2,top:b.pageY-i.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,g,d),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);return this._slide(a,this._handleIndex,c),!1},_mouseStop:function(a){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(a){var b,c,d,e,f;return"horizontal"===this.orientation?(b=this.elementSize.width,c=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(b=this.elementSize.height,c=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),"vertical"===this.orientation&&(d=1-d),e=this._valueMax()-this._valueMin(),f=this._valueMin()+d*e,this._trimAlignValue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),2===this.options.values.length&&this.options.range===!0&&(0===b&&c>d||1===b&&c
1)return this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),void this._change(null,b);if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();for(d=this.options.values,e=arguments[0],f=0;f=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b,d=a-c;return 2*Math.abs(c)>=b&&(d+=c>0?b:-b),parseFloat(d.toFixed(5))},_calculateNewMax:function(){var a=this.options.max,b=this._valueMin(),c=this.options.step,d=Math.floor(+(a-b).toFixed(this._precision())/c)*c;a=d+b,this.max=parseFloat(a.toFixed(this._precision()))},_precision:function(){var a=this._precisionOf(this.options.step);return null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min))),a},_precisionOf:function(a){var b=a.toString(),c=b.indexOf(".");return c===-1?0:b.length-c-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var b,c,d,e,f,g=this.options.range,h=this.options,i=this,j=!this._animateOff&&h.animate,k={};this.options.values&&this.options.values.length?this.handles.each(function(d){c=(i.values(d)-i._valueMin())/(i._valueMax()-i._valueMin())*100,k["horizontal"===i.orientation?"left":"bottom"]=c+"%",a(this).stop(1,1)[j?"animate":"css"](k,h.animate),i.options.range===!0&&("horizontal"===i.orientation?(0===d&&i.range.stop(1,1)[j?"animate":"css"]({left:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({width:c-b+"%"},{queue:!1,duration:h.animate})):(0===d&&i.range.stop(1,1)[j?"animate":"css"]({bottom:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({height:c-b+"%"},{queue:!1,duration:h.animate}))),b=c}):(d=this.value(),e=this._valueMin(),f=this._valueMax(),c=f!==e?(d-e)/(f-e)*100:0,k["horizontal"===this.orientation?"left":"bottom"]=c+"%",this.handle.stop(1,1)[j?"animate":"css"](k,h.animate),"min"===g&&"horizontal"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({width:c+"%"},h.animate),"max"===g&&"horizontal"===this.orientation&&this.range[j?"animate":"css"]({width:100-c+"%"},{queue:!1,duration:h.animate}),"min"===g&&"vertical"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({height:c+"%"},h.animate),"max"===g&&"vertical"===this.orientation&&this.range[j?"animate":"css"]({height:100-c+"%"},{queue:!1,duration:h.animate}))},_handleEvents:{keydown:function(b){var c,d,e,f,g=a(b.target).data("ui-slider-handle-index");switch(b.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(b.preventDefault(),!this._keySliding&&(this._keySliding=!0,a(b.target).addClass("ui-state-active"),c=this._start(b,g),c===!1))return}switch(f=this.options.step,d=e=this.options.values&&this.options.values.length?this.values(g):this.value(),b.keyCode){case a.ui.keyCode.HOME:e=this._valueMin();break;case a.ui.keyCode.END:e=this._valueMax();break;case a.ui.keyCode.PAGE_UP:e=this._trimAlignValue(d+(this._valueMax()-this._valueMin())/this.numPages);break;case a.ui.keyCode.PAGE_DOWN:e=this._trimAlignValue(d-(this._valueMax()-this._valueMin())/this.numPages);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(d===this._valueMax())return;e=this._trimAlignValue(d+f);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(d===this._valueMin())return;e=this._trimAlignValue(d-f)}this._slide(b,g,e)},keyup:function(b){var c=a(b.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(b,c),this._change(b,c),a(b.target).removeClass("ui-state-active"))}}})});
// source --> http://indianatalkssports.com/wp-includes/js/jquery/jquery.ui.touch-punch.js?ver=0.2.2
/*!
* jQuery UI Touch Punch 0.2.2
*
* Copyright 2011, Dave Furfero
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Depends:
* jquery.ui.widget.js
* jquery.ui.mouse.js
*/
(function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return}var c=b.ui.mouse.prototype,e=c._mouseInit,a;function d(g,h){if(g.originalEvent.touches.length>1){return}g.preventDefault();var i=g.originalEvent.changedTouches[0],f=document.createEvent("MouseEvents");f.initMouseEvent(h,true,true,window,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);g.target.dispatchEvent(f)}c._touchStart=function(g){var f=this;if(a||!f._mouseCapture(g.originalEvent.changedTouches[0])){return}a=true;f._touchMoved=false;d(g,"mouseover");d(g,"mousemove");d(g,"mousedown")};c._touchMove=function(f){if(!a){return}this._touchMoved=true;d(f,"mousemove")};c._touchEnd=function(f){if(!a){return}d(f,"mouseup");d(f,"mouseout");if(!this._touchMoved){d(f,"click")}a=false};c._mouseInit=function(){var f=this;f.element.bind("touchstart",b.proxy(f,"_touchStart")).bind("touchmove",b.proxy(f,"_touchMove")).bind("touchend",b.proxy(f,"_touchEnd"));e.call(f)}})(jQuery);
// source --> http://indianatalkssports.com/wp-content/plugins/wcp-openweather/assets/libs/iris/iris.min.js?ver=5.2.1
/*! Iris Color Picker - v1.0.7 - 2014-11-28
* https://github.com/Automattic/Iris
* Copyright (c) 2014 Matt Wiebe; Licensed GPLv2 */
!function(a,b){function c(){var b,c,d="backgroundImage";j?k="filter":(b=a(''),c="linear-gradient(top,#fff,#000)",a.each(l,function(a,e){return b.css(d,e+c),b.css(d).match("gradient")?(k=a,!1):void 0}),k===!1&&(b.css("background","-webkit-gradient(linear,0% 0%,0% 100%,from(#fff),to(#000))"),b.css(d).match("gradient")&&(k="webkit")),b.remove())}function d(b,c){return b="top"===b?"top":"left",c=a.isArray(c)?c:Array.prototype.slice.call(arguments,1),"webkit"===k?f(b,c):l[k]+"linear-gradient("+b+", "+c.join(", ")+")"}function e(b,c){var d,e,f,h,i,j,k,l,m;b="top"===b?"top":"left",c=a.isArray(c)?c:Array.prototype.slice.call(arguments,1),d="top"===b?0:1,e=a(this),f=c.length-1,h="filter",i=1===d?"left":"top",j=1===d?"right":"bottom",k=1===d?"height":"width",l='',m="","static"===e.css("position")&&e.css({position:"relative"}),c=g(c),a.each(c,function(a,b){var e,g,h;return a===f?!1:(e=c[a+1],b.stop!==e.stop&&(g=100-parseFloat(e.stop)+"%",b.octoHex=new Color(b.color).toIEOctoHex(),e.octoHex=new Color(e.color).toIEOctoHex(),h="progid:DXImageTransform.Microsoft.Gradient(GradientType="+d+", StartColorStr='"+b.octoHex+"', EndColorStr='"+e.octoHex+"')",m+=l.replace("%start%",b.stop).replace("%end%",g).replace("%filter%",h)),void 0)}),e.find(".iris-ie-gradient-shim").remove(),a(m).prependTo(e)}function f(b,c){var d=[];return b="top"===b?"0% 0%,0% 100%,":"0% 100%,100% 100%,",c=g(c),a.each(c,function(a,b){d.push("color-stop("+parseFloat(b.stop)/100+", "+b.color+")")}),"-webkit-gradient(linear,"+b+d.join(",")+")"}function g(b){var c=[],d=[],e=[],f=b.length-1;return a.each(b,function(a,b){var e=b,f=!1,g=b.match(/1?[0-9]{1,2}%$/);g&&(e=b.replace(/\s?1?[0-9]{1,2}%$/,""),f=g.shift()),c.push(e),d.push(f)}),d[0]===!1&&(d[0]="0%"),d[f]===!1&&(d[f]="100%"),d=h(d),a.each(d,function(a){e[a]={color:c[a],stop:d[a]}}),e}function h(b){var c,d,e,f,g=0,i=b.length-1,j=0,k=!1;if(b.length<=2||a.inArray(!1,b)<0)return b;for(;jj;)b[j]=f+e*c+"%",e++,j++;return h(b)}var i,j,k,l,m,n,o,p,q;return i='',m='.iris-picker{display:block;position:relative}.iris-picker,.iris-picker *{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input+.iris-picker{margin-top:4px}.iris-error{background-color:#ffafaf}.iris-border{border-radius:3px;border:1px solid #aaa;width:200px;background-color:#fff}.iris-picker-inner{position:absolute;top:0;right:0;left:0;bottom:0}.iris-border .iris-picker-inner{top:10px;right:10px;left:10px;bottom:10px}.iris-picker .iris-square-inner{position:absolute;left:0;right:0;top:0;bottom:0}.iris-picker .iris-square,.iris-picker .iris-slider,.iris-picker .iris-square-inner,.iris-picker .iris-palette{border-radius:3px;box-shadow:inset 0 0 5px rgba(0,0,0,.4);height:100%;width:12.5%;float:left;margin-right:5%}.iris-picker .iris-square{width:76%;margin-right:10%;position:relative}.iris-picker .iris-square-inner{width:auto;margin:0}.iris-ie-9 .iris-square,.iris-ie-9 .iris-slider,.iris-ie-9 .iris-square-inner,.iris-ie-9 .iris-palette{box-shadow:none;border-radius:0}.iris-ie-9 .iris-square,.iris-ie-9 .iris-slider,.iris-ie-9 .iris-palette{outline:1px solid rgba(0,0,0,.1)}.iris-ie-lt9 .iris-square,.iris-ie-lt9 .iris-slider,.iris-ie-lt9 .iris-square-inner,.iris-ie-lt9 .iris-palette{outline:1px solid #aaa}.iris-ie-lt9 .iris-square .ui-slider-handle{outline:1px solid #aaa;background-color:#fff;-ms-filter:"alpha(Opacity=30)"}.iris-ie-lt9 .iris-square .iris-square-handle{background:0;border:3px solid #fff;-ms-filter:"alpha(Opacity=50)"}.iris-picker .iris-strip{margin-right:0;position:relative}.iris-picker .iris-strip .ui-slider-handle{position:absolute;background:0;margin:0;right:-3px;left:-3px;border:4px solid #aaa;border-width:4px 3px;width:auto;height:6px;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.2);opacity:.9;z-index:5;cursor:ns-resize}.iris-strip .ui-slider-handle:before{content:" ";position:absolute;left:-2px;right:-2px;top:-3px;bottom:-3px;border:2px solid #fff;border-radius:3px}.iris-picker .iris-slider-offset{position:absolute;top:11px;left:0;right:0;bottom:-3px;width:auto;height:auto;background:transparent;border:0;border-radius:0}.iris-picker .iris-square-handle{background:transparent;border:5px solid #aaa;border-radius:50%;border-color:rgba(128,128,128,.5);box-shadow:none;width:12px;height:12px;position:absolute;left:-10px;top:-10px;cursor:move;opacity:1;z-index:10}.iris-picker .ui-state-focus .iris-square-handle{opacity:.8}.iris-picker .iris-square-handle:hover{border-color:#999}.iris-picker .iris-square-value:focus .iris-square-handle{box-shadow:0 0 2px rgba(0,0,0,.75);opacity:.8}.iris-picker .iris-square-handle:hover::after{border-color:#fff}.iris-picker .iris-square-handle::after{position:absolute;bottom:-4px;right:-4px;left:-4px;top:-4px;border:3px solid #f9f9f9;border-color:rgba(255,255,255,.8);border-radius:50%;content:" "}.iris-picker .iris-square-value{width:8px;height:8px;position:absolute}.iris-ie-lt9 .iris-square-value,.iris-mozilla .iris-square-value{width:1px;height:1px}.iris-palette-container{position:absolute;bottom:0;left:0;margin:0;padding:0}.iris-border .iris-palette-container{left:10px;bottom:10px}.iris-picker .iris-palette{margin:0;cursor:pointer}.iris-square-handle,.ui-slider-handle{border:0;outline:0}',o=navigator.userAgent.toLowerCase(),p="Microsoft Internet Explorer"===navigator.appName,q=p?parseFloat(o.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0,j=p&&10>q,k=!1,l=["-moz-","-webkit-","-o-","-ms-"],j&&7>=q?(a.fn.iris=a.noop,a.support.iris=!1,void 0):(a.support.iris=!0,a.fn.gradient=function(){var b=arguments;return this.each(function(){j?e.apply(this,b):a(this).css("backgroundImage",d.apply(this,b))})},a.fn.raninbowGradient=function(b,c){var d,e,f,g;for(b=b||"top",d=a.extend({},{s:100,l:50},c),e="hsl(%h%,"+d.s+"%,"+d.l+"%)",f=0,g=[];360>=f;)g.push(e.replace("%h%",f)),f+=30;return this.each(function(){a(this).gradient(b,g)})},n={options:{color:!1,mode:"hsl",controls:{horiz:"s",vert:"l",strip:"h"},hide:!0,border:!0,target:!1,width:200,palettes:!1},_color:"",_palettes:["#000","#fff","#d33","#d93","#ee2","#81d742","#1e73be","#8224e3"],_inited:!1,_defaultHSLControls:{horiz:"s",vert:"l",strip:"h"},_defaultHSVControls:{horiz:"h",vert:"v",strip:"s"},_scale:{h:360,s:100,l:100,v:100},_create:function(){var b=this,d=b.element,e=b.options.color||d.val();k===!1&&c(),d.is("input")?(b.picker=b.options.target?a(i).appendTo(b.options.target):a(i).insertAfter(d),b._addInputListeners(d)):(d.append(i),b.picker=d.find(".iris-picker")),p?9===q?b.picker.addClass("iris-ie-9"):8>=q&&b.picker.addClass("iris-ie-lt9"):o.indexOf("compatible")<0&&o.indexOf("khtml")<0&&o.match(/mozilla/)&&b.picker.addClass("iris-mozilla"),b.options.palettes&&b._addPalettes(),b._color=new Color(e).setHSpace(b.options.mode),b.options.color=b._color.toString(),b.controls={square:b.picker.find(".iris-square"),squareDrag:b.picker.find(".iris-square-value"),horiz:b.picker.find(".iris-square-horiz"),vert:b.picker.find(".iris-square-vert"),strip:b.picker.find(".iris-strip"),stripSlider:b.picker.find(".iris-strip .iris-slider-offset")},"hsv"===b.options.mode&&b._has("l",b.options.controls)?b.options.controls=b._defaultHSVControls:"hsl"===b.options.mode&&b._has("v",b.options.controls)&&(b.options.controls=b._defaultHSLControls),b.hue=b._color.h(),b.options.hide&&b.picker.hide(),b.options.border&&b.picker.addClass("iris-border"),b._initControls(),b.active="external",b._dimensions(),b._change()},_has:function(b,c){var d=!1;return a.each(c,function(a,c){return b===c?(d=!0,!1):void 0}),d},_addPalettes:function(){var b=a(''),c=a(''),d=a.isArray(this.options.palettes)?this.options.palettes:this._palettes;this.picker.find(".iris-palette-container").length&&(b=this.picker.find(".iris-palette-container").detach().html("")),a.each(d,function(a,d){c.clone().data("color",d).css("backgroundColor",d).appendTo(b).height(10).width(10)}),this.picker.append(b)},_paint:function(){var a=this;a._paintDimension("top","strip"),a._paintDimension("top","vert"),a._paintDimension("left","horiz")},_paintDimension:function(a,b){var c,d=this,e=d._color,f=d.options.mode,g=d._getHSpaceColor(),h=d.controls[b],i=d.options.controls;if(b!==d.active&&("square"!==d.active||"strip"===b))switch(i[b]){case"h":if("hsv"===f){switch(g=e.clone(),b){case"horiz":g[i.vert](100);break;case"vert":g[i.horiz](100);break;case"strip":g.setHSpace("hsl")}c=g.toHsl()}else c="strip"===b?{s:g.s,l:g.l}:{s:100,l:g.l};h.raninbowGradient(a,c);break;case"s":"hsv"===f?"vert"===b?c=[e.clone().a(0).s(0).toCSS("rgba"),e.clone().a(1).s(0).toCSS("rgba")]:"strip"===b?c=[e.clone().s(100).toCSS("hsl"),e.clone().s(0).toCSS("hsl")]:"horiz"===b&&(c=["#fff","hsl("+g.h+",100%,50%)"]):c="vert"===b&&"h"===d.options.controls.horiz?["hsla(0, 0%, "+g.l+"%, 0)","hsla(0, 0%, "+g.l+"%, 1)"]:["hsl("+g.h+",0%,50%)","hsl("+g.h+",100%,50%)"],h.gradient(a,c);break;case"l":c="strip"===b?["hsl("+g.h+",100%,100%)","hsl("+g.h+", "+g.s+"%,50%)","hsl("+g.h+",100%,0%)"]:["#fff","rgba(255,255,255,0) 50%","rgba(0,0,0,0) 50%","rgba(0,0,0,1)"],h.gradient(a,c);break;case"v":c="strip"===b?[e.clone().v(100).toCSS(),e.clone().v(0).toCSS()]:["rgba(0,0,0,0)","#000"],h.gradient(a,c)}},_getHSpaceColor:function(){return"hsv"===this.options.mode?this._color.toHsv():this._color.toHsl()},_dimensions:function(b){var c,d,e,f,g=this,h=g.options,i=g.controls,j=i.square,k=g.picker.find(".iris-strip"),l="77.5%",m="12%",n=20,o=h.border?h.width-n:h.width,p=a.isArray(h.palettes)?h.palettes.length:g._palettes.length;return b&&(j.css("width",""),k.css("width",""),g.picker.css({width:"",height:""})),l=o*(parseFloat(l)/100),m=o*(parseFloat(m)/100),c=h.border?l+n:l,j.width(l).height(l),k.height(l).width(m),g.picker.css({width:h.width,height:c}),h.palettes?(d=2*l/100,f=l-(p-1)*d,e=f/p,g.picker.find(".iris-palette").each(function(b){var c=0===b?0:d;a(this).css({width:e,height:e,marginLeft:c})}),g.picker.css("paddingBottom",e+d),k.height(e+d+l),void 0):g.picker.css("paddingBottom","")},_addInputListeners:function(a){var b=this,c=100,d=function(c){var d=new Color(a.val()),e=a.val().replace(/^#/,"");a.removeClass("iris-error"),d.error?""!==e&&a.addClass("iris-error"):d.toString()!==b._color.toString()&&("keyup"===c.type&&e.match(/^[0-9a-fA-F]{3}$/)||b._setOption("color",d.toString()))};a.on("change",d).on("keyup",b._debounce(d,c)),b.options.hide&&a.one("focus",function(){b.show()})},_initControls:function(){var b=this,c=b.controls,d=c.square,e=b.options.controls,f=b._scale[e.strip];c.stripSlider.slider({orientation:"vertical",max:f,slide:function(a,c){b.active="strip","h"===e.strip&&(c.value=f-c.value),b._color[e.strip](c.value),b._change.apply(b,arguments)}}),c.squareDrag.draggable({containment:c.square.find(".iris-square-inner"),zIndex:1e3,cursor:"move",drag:function(a,c){b._squareDrag(a,c)},start:function(){d.addClass("iris-dragging"),a(this).addClass("ui-state-focus")},stop:function(){d.removeClass("iris-dragging"),a(this).removeClass("ui-state-focus")}}).on("mousedown mouseup",function(c){var d="ui-state-focus";c.preventDefault(),"mousedown"===c.type?(b.picker.find("."+d).removeClass(d).blur(),a(this).addClass(d).focus()):a(this).removeClass(d)}).on("keydown",function(a){var d=c.square,e=c.squareDrag,f=e.position(),g=b.options.width/100;switch(a.altKey&&(g*=10),a.keyCode){case 37:f.left-=g;break;case 38:f.top-=g;break;case 39:f.left+=g;break;case 40:f.top+=g;break;default:return!0}f.left=Math.max(0,Math.min(f.left,d.width())),f.top=Math.max(0,Math.min(f.top,d.height())),e.css(f),b._squareDrag(a,{position:f}),a.preventDefault()}),d.mousedown(function(c){var d,e;1===c.which&&a(c.target).is("div")&&(d=b.controls.square.offset(),e={top:c.pageY-d.top,left:c.pageX-d.left},c.preventDefault(),b._squareDrag(c,{position:e}),c.target=b.controls.squareDrag.get(0),b.controls.squareDrag.css(e).trigger(c))}),b.options.palettes&&b._paletteListeners()},_paletteListeners:function(){var b=this;b.picker.find(".iris-palette-container").on("click.palette",".iris-palette",function(){b._color.fromCSS(a(this).data("color")),b.active="external",b._change()}).on("keydown.palette",".iris-palette",function(b){return 13!==b.keyCode&&32!==b.keyCode?!0:(b.stopPropagation(),a(this).click(),void 0)})},_squareDrag:function(a,b){var c=this,d=c.options.controls,e=c._squareDimensions(),f=Math.round((e.h-b.position.top)/e.h*c._scale[d.vert]),g=c._scale[d.horiz]-Math.round((e.w-b.position.left)/e.w*c._scale[d.horiz]);c._color[d.horiz](g)[d.vert](f),c.active="square",c._change.apply(c,arguments)},_setOption:function(b,c){var d,e,f,g=this,h=g.options[b],i=!1;switch(g.options[b]=c,b){case"color":c=""+c,d=c.replace(/^#/,""),e=new Color(c).setHSpace(g.options.mode),e.error?g.options[b]=h:(g._color=e,g.options.color=g.options[b]=g._color.toString(),g.active="external",g._change());break;case"palettes":i=!0,c?g._addPalettes():g.picker.find(".iris-palette-container").remove(),h||g._paletteListeners();break;case"width":i=!0;break;case"border":i=!0,f=c?"addClass":"removeClass",g.picker[f]("iris-border");break;case"mode":case"controls":if(h===c)return;return f=g.element,h=g.options,h.hide=!g.picker.is(":visible"),g.destroy(),g.picker.remove(),a(g.element).iris(h)}i&&g._dimensions(!0)},_squareDimensions:function(a){var c,d,e=this.controls.square;return a!==b&&e.data("dimensions")?e.data("dimensions"):(d=this.controls.squareDrag,c={w:e.width(),h:e.height()},e.data("dimensions",c),c)},_isNonHueControl:function(a,b){return"square"===a&&"h"===this.options.controls.strip?!0:"external"===b||"h"===b&&"strip"===a?!1:!0},_change:function(){var b=this,c=b.controls,d=b._getHSpaceColor(),e=["square","strip"],f=b.options.controls,g=f[b.active]||"external",h=b.hue;"strip"===b.active?e=[]:"external"!==b.active&&e.pop(),a.each(e,function(a,e){var g,h,i;if(e!==b.active)switch(e){case"strip":g="h"===f.strip?b._scale[f.strip]-d[f.strip]:d[f.strip],c.stripSlider.slider("value",g);break;case"square":h=b._squareDimensions(),i={left:d[f.horiz]/b._scale[f.horiz]*h.w,top:h.h-d[f.vert]/b._scale[f.vert]*h.h},b.controls.squareDrag.css(i)}}),d.h!==h&&b._isNonHueControl(b.active,g)&&b._color.h(h),b.hue=b._color.h(),b.options.color=b._color.toString(),b._inited&&b._trigger("change",{type:b.active},{color:b._color}),b.element.is(":input")&&!b._color.error&&(b.element.removeClass("iris-error"),b.element.val()!==b._color.toString()&&b.element.val(b._color.toString())),b._paint(),b._inited=!0,b.active=!1},_debounce:function(a,b,c){var d,e;return function(){var f,g,h=this,i=arguments;return f=function(){d=null,c||(e=a.apply(h,i))},g=c&&!d,clearTimeout(d),d=setTimeout(f,b),g&&(e=a.apply(h,i)),e}},show:function(){this.picker.show()},hide:function(){this.picker.hide()},toggle:function(){this.picker.toggle()},color:function(a){return a===!0?this._color.clone():a===b?this._color.toString():(this.option("color",a),void 0)}},a.widget("a8c.iris",n),a('").appendTo("head"),void 0)}(jQuery),function(a,b){var c=function(a,b){return this instanceof c?this._init(a,b):new c(a,b)};c.fn=c.prototype={_color:0,_alpha:1,error:!1,_hsl:{h:0,s:0,l:0},_hsv:{h:0,s:0,v:0},_hSpace:"hsl",_init:function(a){var c="noop";switch(typeof a){case"object":return a.a!==b&&this.a(a.a),c=a.r!==b?"fromRgb":a.l!==b?"fromHsl":a.v!==b?"fromHsv":c,this[c](a);case"string":return this.fromCSS(a);case"number":return this.fromInt(parseInt(a,10))}return this},_error:function(){return this.error=!0,this},clone:function(){for(var a=new c(this.toInt()),b=["_alpha","_hSpace","_hsl","_hsv","error"],d=b.length-1;d>=0;d--)a[b[d]]=this[b[d]];return a},setHSpace:function(a){return this._hSpace="hsv"===a?a:"hsl",this},noop:function(){return this},fromCSS:function(a){var b,c=/^(rgb|hs(l|v))a?\(/;if(this.error=!1,a=a.replace(/^\s+/,"").replace(/\s+$/,"").replace(/;$/,""),a.match(c)&&a.match(/\)$/)){if(b=a.replace(/(\s|%)/g,"").replace(c,"").replace(/,?\);?$/,"").split(","),b.length<3)return this._error();if(4===b.length&&(this.a(parseFloat(b.pop())),this.error))return this;for(var d=b.length-1;d>=0;d--)if(b[d]=parseInt(b[d],10),isNaN(b[d]))return this._error();return a.match(/^rgb/)?this.fromRgb({r:b[0],g:b[1],b:b[2]}):a.match(/^hsv/)?this.fromHsv({h:b[0],s:b[1],v:b[2]}):this.fromHsl({h:b[0],s:b[1],l:b[2]})}return this.fromHex(a)},fromRgb:function(a,c){return"object"!=typeof a||a.r===b||a.g===b||a.b===b?this._error():(this.error=!1,this.fromInt(parseInt((a.r<<16)+(a.g<<8)+a.b,10),c))},fromHex:function(a){return a=a.replace(/^#/,"").replace(/^0x/,""),3===a.length&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),this.error=!/^[0-9A-F]{6}$/i.test(a),this.fromInt(parseInt(a,16))},fromHsl:function(a){var c,d,e,f,g,h,i,j;return"object"!=typeof a||a.h===b||a.s===b||a.l===b?this._error():(this._hsl=a,this._hSpace="hsl",h=a.h/360,i=a.s/100,j=a.l/100,0===i?c=d=e=j:(f=.5>j?j*(1+i):j+i-j*i,g=2*j-f,c=this.hue2rgb(g,f,h+1/3),d=this.hue2rgb(g,f,h),e=this.hue2rgb(g,f,h-1/3)),this.fromRgb({r:255*c,g:255*d,b:255*e},!0))},fromHsv:function(a){var c,d,e,f,g,h,i,j,k,l,m;if("object"!=typeof a||a.h===b||a.s===b||a.v===b)return this._error();switch(this._hsv=a,this._hSpace="hsv",c=a.h/360,d=a.s/100,e=a.v/100,i=Math.floor(6*c),j=6*c-i,k=e*(1-d),l=e*(1-j*d),m=e*(1-(1-j)*d),i%6){case 0:f=e,g=m,h=k;break;case 1:f=l,g=e,h=k;break;case 2:f=k,g=e,h=m;break;case 3:f=k,g=l,h=e;break;case 4:f=m,g=k,h=e;break;case 5:f=e,g=k,h=l}return this.fromRgb({r:255*f,g:255*g,b:255*h},!0)},fromInt:function(a,c){return this._color=parseInt(a,10),isNaN(this._color)&&(this._color=0),this._color>16777215?this._color=16777215:this._color<0&&(this._color=0),c===b&&(this._hsv.h=this._hsv.s=this._hsl.h=this._hsl.s=0),this},hue2rgb:function(a,b,c){return 0>c&&(c+=1),c>1&&(c-=1),1/6>c?a+6*(b-a)*c:.5>c?b:2/3>c?a+6*(b-a)*(2/3-c):a},toString:function(){var a=parseInt(this._color,10).toString(16);if(this.error)return"";if(a.length<6)for(var b=6-a.length-1;b>=0;b--)a="0"+a;return"#"+a},toCSS:function(a,b){switch(a=a||"hex",b=parseFloat(b||this._alpha),a){case"rgb":case"rgba":var c=this.toRgb();return 1>b?"rgba( "+c.r+", "+c.g+", "+c.b+", "+b+" )":"rgb( "+c.r+", "+c.g+", "+c.b+" )";case"hsl":case"hsla":var d=this.toHsl();return 1>b?"hsla( "+d.h+", "+d.s+"%, "+d.l+"%, "+b+" )":"hsl( "+d.h+", "+d.s+"%, "+d.l+"% )";default:return this.toString()}},toRgb:function(){return{r:255&this._color>>16,g:255&this._color>>8,b:255&this._color}},toHsl:function(){var a,b,c=this.toRgb(),d=c.r/255,e=c.g/255,f=c.b/255,g=Math.max(d,e,f),h=Math.min(d,e,f),i=(g+h)/2;if(g===h)a=b=0;else{var j=g-h;switch(b=i>.5?j/(2-g-h):j/(g+h),g){case d:a=(e-f)/j+(f>e?6:0);break;case e:a=(f-d)/j+2;break;case f:a=(d-e)/j+4}a/=6}return a=Math.round(360*a),0===a&&this._hsl.h!==a&&(a=this._hsl.h),b=Math.round(100*b),0===b&&this._hsl.s&&(b=this._hsl.s),{h:a,s:b,l:Math.round(100*i)}},toHsv:function(){var a,b,c=this.toRgb(),d=c.r/255,e=c.g/255,f=c.b/255,g=Math.max(d,e,f),h=Math.min(d,e,f),i=g,j=g-h;if(b=0===g?0:j/g,g===h)a=b=0;else{switch(g){case d:a=(e-f)/j+(f>e?6:0);break;case e:a=(f-d)/j+2;break;case f:a=(d-e)/j+4}a/=6}return a=Math.round(360*a),0===a&&this._hsv.h!==a&&(a=this._hsv.h),b=Math.round(100*b),0===b&&this._hsv.s&&(b=this._hsv.s),{h:a,s:b,v:Math.round(100*i)}},toInt:function(){return this._color},toIEOctoHex:function(){var a=this.toString(),b=parseInt(255*this._alpha,10).toString(16);return 1===b.length&&(b="0"+b),"#"+b+a.replace(/^#/,"")},toLuminosity:function(){var a=this.toRgb();return.2126*Math.pow(a.r/255,2.2)+.7152*Math.pow(a.g/255,2.2)+.0722*Math.pow(a.b/255,2.2)},getDistanceLuminosityFrom:function(a){if(!(a instanceof c))throw"getDistanceLuminosityFrom requires a Color object";var b=this.toLuminosity(),d=a.toLuminosity();return b>d?(b+.05)/(d+.05):(d+.05)/(b+.05)},getMaxContrastColor:function(){var a=this.toLuminosity(),b=a>=.5?"000000":"ffffff";return new c(b)},getReadableContrastingColor:function(a,d){if(!a instanceof c)return this;var e=d===b?5:d,f=a.getDistanceLuminosityFrom(this),g=a.getMaxContrastColor(),h=g.getDistanceLuminosityFrom(a);if(e>=h)return g;if(f>=e)return this;for(var i=0===g.toInt()?-1:1;e>f&&(this.l(i,!0),f=this.getDistanceLuminosityFrom(a),0!==this._color&&16777215!==this._color););return this},a:function(a){if(a===b)return this._alpha;var c=parseFloat(a);return isNaN(c)?this._error():(this._alpha=c,this)},darken:function(a){return a=a||5,this.l(-a,!0)},lighten:function(a){return a=a||5,this.l(a,!0)},saturate:function(a){return a=a||15,this.s(a,!0)},desaturate:function(a){return a=a||15,this.s(-a,!0)},toGrayscale:function(){return this.setHSpace("hsl").s(0)},getComplement:function(){return this.h(180,!0)},getSplitComplement:function(a){a=a||1;var b=180+30*a;return this.h(b,!0)},getAnalog:function(a){a=a||1;var b=30*a;return this.h(b,!0)},getTetrad:function(a){a=a||1;var b=60*a;return this.h(b,!0)},getTriad:function(a){a=a||1;var b=120*a;return this.h(b,!0)},_partial:function(a){var c=d[a];return function(d,e){var f=this._spaceFunc("to",c.space);return d===b?f[a]:(e===!0&&(d=f[a]+d),c.mod&&(d%=c.mod),c.range&&(d=dc.range[1]?c.range[1]:d),f[a]=d,this._spaceFunc("from",c.space,f))}},_spaceFunc:function(a,b,c){var d=b||this._hSpace,e=a+d.charAt(0).toUpperCase()+d.substr(1);return this[e](c)}};var d={h:{mod:360},s:{range:[0,100]},l:{space:"hsl",range:[0,100]},v:{space:"hsv",range:[0,100]},r:{space:"rgb",range:[0,255]},g:{space:"rgb",range:[0,255]},b:{space:"rgb",range:[0,255]}};for(var e in d)d.hasOwnProperty(e)&&(c.fn[e]=c.fn._partial(e));"object"==typeof exports?module.exports=c:a.Color=c}(this);